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.
Comments
Post a Comment