remove markup from html strings, causing problems