Hello i am trying to add options to a select but smarty is outputting the css code as a string.I cant get it to work with php or javascript, I am using this function to replace the html
function unEscape(htmlStr) {
htmlStr = htmlStr.replace(/</g , "<");
htmlStr = htmlStr.replace(/>/g , ">");
htmlStr = htmlStr.replace(/"/g , "\"");
htmlStr = htmlStr.replace(/'/g , "\'");
htmlStr = htmlStr.replace(/&/g , "&");
<br>return htmlStr;
}
And it works when i replace a table element with the same variable but not as a select option.Can anybody help please?For example it will show <b><br><small> but not apply the css
You can use the escape modificator for printing the text: