Escape hyperlink with exclamation marks in php.ini
- by Ciaran McNulty
I have a config file that takes text warnings like follows:
warnings.1 = Please check the date
These are presented to the user as HTML. I need to embed a hyperlink like the following:
warnings.1 = <a href="http://foo.com/!FOO!/">check with foo</a>
I can't for the life of me figure out how to escape this such that parse_ini_file() can read it and get that string the way I want.