Assume the following string:
<b><i><anotherelement>Hello World</anotherelement></i></b>
I only want to allow the bold element to work, while the italic element (and any other elements!) remains untouched, so the output is:
<i><anotherelement>Hello World</anotherelement></i>.
Currently I use:
function outputHtml($element, value){
$element.html($sanitize(value));
}
That solution trusts all elements that come with the $sce bundle so it's not useful for me :(
Any help will be appreciated, thanks!