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'm not sure how the marked function works in the controller, but I'm binding content to my textarea and a div with a marked attribute without any issues:
<divng-controller="MarkdownEditorCtrl as ctrl"><!-- markdown editor --><textareang-model="ctrl.markdown"></textarea><!-- output of markdown --><divmarked="ctrl.markdown"></div></div>
I have a value attached to an ng-model. I would like this value to be run through marked. Something like this.
JS:
var text = "<script>alert('hello scriptio')</script>";
scope.text = marked(text)
HTML:
<textarea ng-model="text"></textarea>
Is this possible?
The text was updated successfully, but these errors were encountered: