I have table with a description column. There is some html in that column.
That html then passes to page, and render it. But sometimes there are comments met, and sometimes they are not closed. I need to clean this data.
I've found them through
select * from table where description like '%<!--%'`
I think its not correct, but I have no idea how to do it better.
Can you suggest a solution to my problem?
Edit
Here is some example.
<div class="text"> some data </div>
<ul><!-- Some comment -->
<li>test</li>
<li>test2</li> <!-- Some comment
</ul>
Regards, Dmitry.