Merge branch 'master' into develop
This commit is contained in:
commit
54fab3d233
2 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,7 @@ export class HtmlUtils {
|
|||
}
|
||||
|
||||
public static escapeHtml(html: string): string {
|
||||
const text = document.createTextNode(html.replace(/(\r\n|\r|\n)/g, "<br/>"));
|
||||
const text = document.createTextNode(html);
|
||||
const p = document.createElement("p");
|
||||
p.appendChild(text);
|
||||
return p.innerHTML;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue