mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-20 11:42:39 +01:00
implemented dispatcher commands
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
};
|
||||
|
||||
HtmlBuilder.createElement = function(template, model) {
|
||||
|
||||
should.beString(template, "template")
|
||||
|
||||
var regex = /(?:{([^}]+)})/g, html;
|
||||
|
||||
if(model == null){
|
||||
@@ -70,6 +73,12 @@
|
||||
}
|
||||
|
||||
HtmlBuilder.escapeHtml = function(html) {
|
||||
if(html == null) {
|
||||
return html;
|
||||
}
|
||||
|
||||
should.beString(html);
|
||||
|
||||
return html
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
|
||||
Reference in New Issue
Block a user