You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mean that model-to-view cases when applying converter to model attribute results in html fragment, and we want to insert this fragment as new nodes into the DOM. If I understand correctly, at the moment just .text() is used for, say, div enclosing elements:
_setElValue:function(el,convertedValue){
...
else{// <----------------------- ANY not form elementel.text(convertedValue||(convertedValue===0 ? '0' : ''));}}
The text was updated successfully, but these errors were encountered:
I also have a need for this. I prefer to use the general form of binding (IE. without converter and unspecified bindings) but would like my application to allow users to enter HTML and have it added as elements inside my bound div.
For now, I converted that line to el.html(... and it works fine. However, this opens up the possibility of XSS so use carefully!
I mean that model-to-view cases when applying converter to model attribute results in html fragment, and we want to insert this fragment as new nodes into the DOM. If I understand correctly, at the moment just .text() is used for, say, div enclosing elements:
The text was updated successfully, but these errors were encountered: