There is HTML code in the database. How to properly place it in the document, while preserving the previously prepared formatting?

Suppose there is a text:

< span style="font-weight: bold;">Лопата< /span> 

It should be removed following the rules of formatting, in this case, just bold.

How to do it? I deduce from a DB on the page all mixed up. JS do not use, all built-in Grails.

  • If php then regular expressions will help you. And better organize bb-codes, there is a lot of information on the Internet. Yes, and it greatly simplifies your work. - Bastian
  • No, not php, but about bb-codes, please give a more precise tip. - fromthesecond
  • Everything, the problem is solved. stackoverflow.com/questions/1337464/… John Flinchbaugh decided. - fromthesecond

0