Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor
New user
uploaded files
|
(misc)-> fckeditor disable short tags |
submited by Russell Wed 29 Sep 10 |
I was having a problem getting text edited with the fckeditor to pass html validation. The text from fckedit would specify breaks as <br /> instead of <br>
here is the trick I found
which is to specify a value for FCKConfig.DocType in the fckconfig.js file. Only, it doesn't work. Perhaps my version of FCKeditor is old ?
I got tired of searching for a solution and stuck a
$value=str_replace("<br />","<br>",$value);
into the code that saves changes in the database.
|
Add comment or question...:
|