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) {
|
function convert(t) {
|
||||||
t = t.replace(/&/g, "&");
|
if (t.indexOf('<a href=') > 0) {
|
||||||
t = t.replace(/<3/g, "\u2764");
|
return t;
|
||||||
t = t.replace(/<=>/g, "<=>");
|
}
|
||||||
|
t = t.replace(/&/g, "&");
|
||||||
|
t = t.replace(/<3/g, "\u2764");
|
||||||
|
t = t.replace(/</g, "<");
|
||||||
|
t = t.replace(/>/g, ">");
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue