|
|
|
 |
 |
 |
|
[ This topic is unsolved! ]
|
|
Moraitopoulos Apostolos
|
04 March 10 / 11:55 |
|
I solved that Problem so:
<?php
// escape the values from dangerous characters
//AMOR $helpTitle = is_null($helpTitle) ? "%title% - " . $this -> _text( 41 ) : htmlentities( $helpTitle );
$helpTitle = is_null($helpTitle) ? "%title% - " . $this -> _text( 41 ) : $helpTitle ;
$helpTitle = preg_replace("/\r?\n/", "\\n", addslashes( $helpTitle ));
$helpText = preg_replace("/\r?\n/", "\\n", addslashes( $helpText ));
// set the help text
$this->_help[$field] = array( $helpText,
//AMOR htmlentities( $helpText ),
$helpTitle
);
?>
|
I also used the solution from Nikos (post in this Forum) without success.
Is it ok?
|
|
|
Johan Wiegel (Admin)
|
04 March 10 / 13:29 |
|
Changed at 04 March 10 / 13:29
We like to keep the htmlentities.
can you test the following code for us?
<?php
// escape the values from dangerous characters
$helpTitle = is_null($helpTitle) ? "%title% - " . $this -> _text( 41 ) : htmlentities( $helpTitle, null, 'UTF-8' );
$helpTitle = preg_replace("/\r?\n/", "\\n", addslashes( $helpTitle ));
$helpText = preg_replace("/\r?\n/", "\\n", addslashes( $helpText ));
// set the help text
$this->_help[$field] = array(
htmlentities( $helpText, null, 'UTF-8' ),
$helpTitle
);
?>
|
|
|
|
Moraitopoulos Apostolos
|
04 March 10 / 18:19 |
|
| htmlentities( $helpTitle, null, 'UTF-8' ) returns an empty string for helpTitle & Helptext!
|
|
|
Johan Wiegel (Admin)
|
05 March 10 / 14:56 |
|
What help tekst do you try to set?
It seems to work fine overhere. Is your helptekst in UTF-8 ???
|
|
|
|
|
|