mirror of
https://github.com/silverstripe/silverstripe-mathspamprotection
synced 2024-10-22 08:05:52 +02:00
MEDIUM: Better fix for entities showing in title attribute
This commit is contained in:
parent
0e3bd1adbb
commit
249279fff6
@ -50,7 +50,7 @@ class MathSpamProtectorField extends SpamProtectorField {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function ATTTitle() {
|
function ATTTitle() {
|
||||||
return Convert::html2raw($this->Title());
|
return html_entity_decode($this->Title(), ENT_COMPAT , 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,5 +21,5 @@ fr:
|
|||||||
WHATIS: 'Combien font %s plus %s ?'
|
WHATIS: 'Combien font %s plus %s ?'
|
||||||
ZERO: zéro
|
ZERO: zéro
|
||||||
MathSpamProtectionField:
|
MathSpamProtectionField:
|
||||||
INCORRECTSOLUTION: 'Mauvaise réponse, essayez à nouveau.'
|
INCORRECTSOLUTION: 'Mauvaise réponse !'
|
||||||
SPAMQUESTION: 'Question anti-spam : %s'
|
SPAMQUESTION: 'Question anti-spam : %s'
|
Loading…
Reference in New Issue
Block a user