wix-incubator / react-native-zss-rich-text-editor

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 310 forks source link

Can this convert plain text to html tags? #137

Open themakerman opened 6 years ago

themakerman commented 6 years ago

Hi

Can this component convert plain text to html text. Do things like italics/bold/bullet points/images...etc?

pawlowskim commented 5 years ago

You can use some kind of markdown converters or something, that is actually plain text, convert it to html and inject using

initialContentHTML

or use

setContentHTML

on component reference.

If you pass directly html tags as you string, it will render it accordingly.