content doesn’t support HTML, only text. You should probably use javascript, jQuery or something like that.
Another problem with your code is " inside a " block. You should mix ' and " (class="headingDetail").
If content did support HTML you could end up in an infinite loop where content is added inside content.