Fix links that have already been parsed and oh deal with those brackets #38
This commit is contained in:
parent
57f6d128c5
commit
91ab0585f6
1 changed files with 5 additions and 1 deletions
|
@ -32,8 +32,12 @@ function parsePostText(data) {
|
|||
}
|
||||
|
||||
function convert(t) {
|
||||
if (t.indexOf('<a href=') > 0) {
|
||||
return t;
|
||||
}
|
||||
t = t.replace(/&/g, "&");
|
||||
t = t.replace(/<3/g, "\u2764");
|
||||
t = t.replace(/<=>/g, "<=>");
|
||||
t = t.replace(/</g, "<");
|
||||
t = t.replace(/>/g, ">");
|
||||
return t;
|
||||
}
|
||||
|
|
Reference in a new issue