ios - UITextView should avoid deleting the html tag -


i have uitextview, display content css style comment text. basically, there htmlstring somestyles.

nsmutableattributedstring *attributedstringforcomment = [[nsmutableattributedstring alloc] initwithdata:[formatedstr datausingencoding:nsunicodestringencoding] options:@{ nsdocumenttypedocumentattribute: nshtmltextdocumenttype } documentattributes:nil error:nil];

which display content css style on uitextview.

now, if 1 edit text, hide comment section removing css styles(so user can not delete other's comment) apply style nsmutableattributedstring adding attribute strike/color deleting/added word.

problem : when user done editing part want string editing text html comment's css style. when apply nsmutableattributedstring style, removes html tag , css style.

any trick/tips me reach solution.


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -