mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-13 18:45:43 +05:00
check for HTML tags across multiple lines
This commit is contained in:
parent
09bdcb2013
commit
554ce65346
@ -68,7 +68,7 @@ var processLang = function (map, lang, primary) {
|
||||
if (typeof(s) !== 'string') { return; }
|
||||
var usesHTML;
|
||||
|
||||
s.replace(/<.*?>/g, function (html) {
|
||||
s.replace(/<[\s\S]*?>/g, function (html) {
|
||||
if (simpleTags.indexOf(html) !== -1) { return; }
|
||||
announce();
|
||||
usesHTML = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user