html - I have a text-area where, how can you use <h1>, <strong> tags within it when in the web browser? -


i have text-area users add text, how can allow user use tags within text-area change style of text? example user wants make 1 line stand out use tag within text-area provided.

if want user able add tags can directly use appendchild() method , append content dom.

else, if want full blown "rich text input or textarea" :

you can check out pagedown editor / preview example.

also, can check out markdown used stackoverflow format user text.

other options tinymce , ckeditor.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -