miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Search | Statistics | Manual |
Bugs miniBB Support Forums / Bugs /   

"Curly" Quotes

Author Hugh
Guest
#1 | Posted: 13 Nov 2003 02:21 
Sometimes my users copy text from wordprocessors into miniBB that contains "curly" quotes, double: ? ?, or single: ? ?. These are not valid in html and I would like to convert them into their entity codes: “ ” and ‘ ’. Would this be difficult? Which file deals with this sort of conversion?

Author 4days
Champi0n
#2 | Posted: 13 Nov 2003 04:08 
bb_codes.php, you could add your own regular expression to the ones already there.

Author Hugh
Guest
#3 | Posted: 14 Nov 2003 16:10 
On investigation, I think it's actually bb_func_txt.php but I still can't make it work, with these entities or others I have tried.

Does anyone have any tips for adding new "string relpace" rules to this file?

Author Team
8-)
#4 | Posted: 14 Nov 2003 16:21 
Actually, I don't know how you can convert double ?? into something without knowing exactly what it is.

Author Hugh
Guest
#5 | Posted: 14 Nov 2003 16:42 
OK, heres another attempt at the first message:

Sometimes my users copy text from wordprocessors into miniBB that contains "curly" quotes, double: “ ”, or single: ‘ ’. These are not valid in html and I would like to convert them into their entity codes: “ ” and ‘ ’. Would this be difficult? Which file deals with this sort of conversion?

Author Team
8-)
#6 | Posted: 14 Nov 2003 16:56 
I guess simple str_replace could help... add it to bbcodes as it was already mentioned

Bugs miniBB Support Forums / Bugs / "Curly" Quotes Top
This topic is closed. New replies are not allowed.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB