×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to use "bigger as" / "smaller as" characters in comments ?

How to use "bigger as" / "smaller as" characters in comments ? 13 years 9 months ago #9992

  • Deleteme
  • Deleteme's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hi there,

is there a way to use the < and > characters in comments ? Very often I'm giving code examples in my comments and so I need these characters :)



Thanks in advance and best regards,
Felix

How to use "bigger as" / "smaller as" characters in comments ? 13 years 9 months ago #9996

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You will have to change the code a little bit.
i'll think to introduce this change with one of the next versions:
go to components/com_comment/classes/joomlacomment/JOSC_board.php on line 162 you will find
		$comment = $this->censorText(strip_tags($this->_tcomment));
change it to
$comment = $this->censorText(htmlspecialchars($this->_tcomment));
this should do the trick.
Cheers,
Daniel

How to use "bigger as" / "smaller as" characters in comments ? 13 years 9 months ago #9997

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
P.S. Don't forget to write a review here: extensions.joomla.org/extensions/contact...icles-comments/12259 :)
  • Page:
  • 1
Time to create page: 0.110 seconds