Hi amsimaganti!
First of all you should learn why you can't simply write html code in PHP:
If you have a var, f.e. $foo = ""; you can't just simply write $foo = " lorem"ip"sum" for example cause PHP in this case won't understand that the var should end at the end of this phrase, it thinks the variable ends at ...lorem" and that " lorem" is the whole string.
So you have to encode the html string a bit with f.e. HTML numbers or ASCII Code.
F.e. lets take <button class="rounded", this should be 'translated' into:
<button class=<rounded<, etc.
Reference: http://www.ascii-code.com/