what if my meaningful things so to speak has shortcodes and escaped characters in them, will they be preserved, should i do a reverse conversion in the end. I don't want anything in the meaningful things touched.
–
MohammadMay 15 '12 at 15:03

You could do an htmlentities again afterwards, yes. There is still no guarantee that "meaningful stuff" won't be changed, but it should be, in essence, the same.
–
D. StroutMay 15 '12 at 15:05

I like the idea, the solution seems really clean and efficient, I think I would be scared to put it into a production code as it depends on PHP's integrity to do these conversions in mirror form. I would test it then I'm not sure how thoroughly I'll be able to test it to be sure its flawless.
–
MohammadMay 15 '12 at 15:10