[pmwiki-users] A little problem with a script.

Carlos AB carlos.ab at gmail.com
Tue Dec 20 08:27:26 CST 2005


I have this markup and function in my local/config.php:

## Markup
Markup("ttfimg", "directive", '/\\(:ttfimg\\s*(.*?):\\)/e',
"Keep(ttfurl(trim('$1')))");

## Function
function ttfurl($font) {
	return "<img
href=\"http://newsite/fntIMG.php?font=".$font."&format=.png\">"; 
}

The problem is that the function returns the html line, like this:

<img href="http://localhost/fnt/fntIMG.php?font=3OF9&amp;format=.png">

How can I make it return the html line without the "html special chars" not
been replaced.

Thank you,

Carlos AB





More information about the pmwiki-users mailing list