Escape <>, fixes #29

This commit is contained in:
Sebastian J. Wolf 2020-09-24 21:54:36 +02:00
parent f14bb9547f
commit 5b0c3df4d3
7 changed files with 51 additions and 49 deletions

View file

@ -119,6 +119,8 @@ MessageInsertion.prototype.toString = function insertionToString() {
function enhanceMessageText(formattedText) {
var messageText = formattedText.text;
messageText = messageText.replace("<", "&lt;");
messageText = messageText.replace(">", "&gt;");
var messageInsertions = [];
for (var i = 0; i < formattedText.entities.length; i++) {

View file

@ -129,14 +129,6 @@
<source>%1 members</source>
<translation>%1 Mitglieder</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1T</translation>
</message>
<message>
<source>%1 subscribers</source>
<translation>%1 Abonnenten</translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation>hat diesen Chat verlassen</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1T</translation>
</message>
</context>
</TS>

View file

@ -129,14 +129,6 @@
<source>%1 members</source>
<translation>%1 miembros</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
<message>
<source>%1 subscribers</source>
<translation>%1 suscriptores</translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation>dejó esta charla</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
</context>
</TS>

View file

@ -129,14 +129,6 @@
<source>%1 members</source>
<translation>%1 tag</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
<message>
<source>%1 subscribers</source>
<translation>%1 feliratkozott</translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation>kilépett a csevegésből</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
</context>
</TS>

View file

@ -129,14 +129,6 @@
<source>%1 members</source>
<translation>%1 czlonków</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
<message>
<source>%1 subscribers</source>
<translation>%1 subskrybentów</translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation>opuścił ten czat</translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1K</translation>
</message>
</context>
</TS>

View file

@ -69,7 +69,7 @@
</message>
<message>
<source>This project uses twemoji. Copyright 2018 Twitter, Inc. and other contributors. Thanks for making it available under the conditions of the MIT License (coding) and CC-BY 4.0 (graphics)!</source>
<translation><该项目使用 twemoji 2018 Twitter, Inc. 版权所有感谢使它在 MIT 许可证编码 CC-BY 4.0图像许可证下可用</translation>
<translation>使 twemoji 2018 Twitter, Inc. 使 MIT CC-BY 4.0</translation>
</message>
<message>
<source>Open twemoji on GitHub</source>
@ -129,14 +129,6 @@
<source>%1 members</source>
<translation>%1 </translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1T</translation>
</message>
<message>
<source>%1 subscribers</source>
<translation>%1 </translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation></translation>
</message>
<message>
<source>%1M</source>
<translation>%1M</translation>
</message>
<message>
<source>%1K</source>
<translation>%1T</translation>
</message>
</context>
</TS>

View file

@ -129,14 +129,6 @@
<source>%1 members</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1M</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1K</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1 subscribers</source>
<translation type="unfinished"></translation>
@ -511,5 +503,13 @@
<source>left this chat</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1M</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1K</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>