Escape hyperlink with exclamation marks in php.ini
Posted
by Ciaran McNulty
on Stack Overflow
See other posts from Stack Overflow
or by Ciaran McNulty
Published on 2010-04-14T17:12:05Z
Indexed on
2010/04/16
16:43 UTC
Read the original article
Hit count: 240
php
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.
© Stack Overflow or respective owner