fix issue with escaping < in dtext
This commit is contained in:
@@ -451,7 +451,7 @@ Danbooru.Note = {
|
|||||||
$article.data("y"),
|
$article.data("y"),
|
||||||
$article.data("width"),
|
$article.data("width"),
|
||||||
$article.data("height"),
|
$article.data("height"),
|
||||||
$article.html()
|
$article.text()
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,8 @@ class DText
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.sanitize(text)
|
def self.sanitize(text)
|
||||||
|
text.gsub!(/<( |\Z)/, "<\\1")
|
||||||
|
|
||||||
Sanitize.clean(
|
Sanitize.clean(
|
||||||
text,
|
text,
|
||||||
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small big b i font),
|
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small big b i font),
|
||||||
|
|||||||
Reference in New Issue
Block a user