Hi,
Do you know if there exist a php function for cleaning html code ?
Removing :
" align=left"
"<STRONG> </STRONG>" etc ...
etc ...
Do you know if there exist a php function for cleaning html code ?
Removing :
" align=left"
"<STRONG> </STRONG>" etc ...
etc ...
RE: Php html cleaner
str_replace(' align=left', '', $content);
You have to be careful and thoughtful about what things you want to automatically fix, to make sure you don't cause unexpected and unwanted changes as a result, but there are lots of little things like this that can be replaced and fixed on save.