1
PTlooker
Geshi - Who know how to use htmlentities(); ?
  • 2006/4/10 19:43

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Hi,
I'm using the Geshi hack for highlighting codes. But I'm getting some troubles.
When I do something like:

code=php]
$var "Hello/r/n"//that should break for a new line after Hello
[ /code]


I got something like this -> Hellorn , so the problem is that it erases the / , I've read something about andf it seems that the php function htmlentities() solves this.
I tried to contact the "geshi hack creator" but i got no answer, so i wonder if someone can do this please?

Thanks in advance!

2
PTlooker
Re: Geshi - Who know how to use htmlentities(); ?
  • 2006/4/10 22:11

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


anyone please?

3
PTlooker
Re: Geshi - Who know how to use htmlentities(); ?
  • 2006/4/11 14:25

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


hello? no php coder around here?

4
JMorris
Re: Geshi - Who know how to use htmlentities(); ?
  • 2006/4/11 15:58

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


I'm far from being a PHP programmer, but it looks like the issue might be related to nl2br.

http://us2.php.net/manual/en/function.nl2br.php

Hope this is, at least, a little helpful.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
PTlooker
Re: Geshi - Who know how to use htmlentities(); ?
  • 2006/4/11 16:29

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


I dont know, my problem is that i dont know how to use that in the module code..if anyone could do it, would be just great

Login

Who's Online

160 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits