I am using CKEditor to let people describe their organization with all the styles and fonts. So when it saves in the database its like <
gets saved as >
and rest all you know for the html tags. When I populate this page for public view I convert the >
and <
to html tags so no issue in displaying too. But the thing noticed recently is when I search the same profile in google I can see <strong>
<p>
such kind of tags their. Searched Google and Stack Overflow to solve the same but didn't help. Is their any feasible solution?
Sample example of how content from CKEditor stores in table is <p>
Privacy Policy</p>
is this. I convert this on web page at load time to html tags so that people see the style and fonts what they wanted. But the Google search summary shows html tags(unwanted). The link for sample view of problem
>
) in the database - this is what's ultimately causing the problems and making it harder to work with. Only when you display this content in an HTML context (ie. "populate this page for public view") should you be converting to HTML entities.