[TYPO3-english] Convert ' -> \' in HMENU?

Benoit Montereau bmontereau at gmail.com
Tue Nov 23 15:43:38 CET 2010

I would like to use the HMENU definition to get a string used into a
javascript function. Unfortunately, the menu definition (string) generated
very often contains "bad" characters like ' or " and just using this string
is causing javascript error.

So my question is to know if it's possible to parameter the output of the
HMENU and replace all ' by \'?

Thank you in advance for your help/tips.
Best Regards,

More information about the TYPO3-english mailing list