mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Parse HTMLText and HTMLVarchar values with ShortcodeParser before inserting into a template.
From: Andrew Short <andrewjshort@gmail.com> git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88475 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
365b4784a9
commit
55408946a6
@ -112,7 +112,7 @@ class HTMLText extends Text {
|
||||
}
|
||||
|
||||
public function forTemplate() {
|
||||
return $this->value;
|
||||
return ShortcodeParser::get_active()->parse($this->value);
|
||||
}
|
||||
|
||||
public function hasValue() {
|
||||
|
@ -11,7 +11,7 @@ class HTMLVarchar extends Varchar {
|
||||
public static $escape_type = 'xml';
|
||||
|
||||
public function forTemplate() {
|
||||
return $this->value;
|
||||
return ShortcodeParser::get_active()->parse($this->value);
|
||||
}
|
||||
|
||||
public function hasValue() {
|
||||
|
Loading…
Reference in New Issue
Block a user