How to decode a lot of raw htmldata in php page and how to get proper image and text from raw htmldata
<p>I have a lot raw htmldata(image and text) that is coming in dynamic way.Firstly I get raw htmldata by html() in jquery and it is encoded with window.btoa() in javascript and then it is saved in database table in encoded position.These are working fine. </p>

<p>But when I fetch the encoded raw htmldata(Text and image) by base64_decode() in php page,it is not proper decoded.
What is the solution of this problem.
And another problem is how to get proper text and proper image from raw htmldata after decoding from database table.
How to fix these two types of problems. if any one know about it, please, reply me.
I need Your hand
Thank you</p>
