diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:52:56 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:53:09 +0100 |
| commit | cc5ab399cc3c8f78158c8e3027cb0ecf038648dc (patch) | |
| tree | 54da92556607e9cae21cfbd440ed136b383b0b94 /app/Module/HtmlBlockModule.php | |
| parent | 1c2ce4bb435dee3d5672951797a6a66711c25938 (diff) | |
| download | webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.gz webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.bz2 webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.zip | |
Prepare to remove class Filter
Diffstat (limited to 'app/Module/HtmlBlockModule.php')
| -rw-r--r-- | app/Module/HtmlBlockModule.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Module/HtmlBlockModule.php b/app/Module/HtmlBlockModule.php index 0a781f3a19..ad1a5b6a95 100644 --- a/app/Module/HtmlBlockModule.php +++ b/app/Module/HtmlBlockModule.php @@ -21,6 +21,7 @@ use Fisharebest\Webtrees\Filter; use Fisharebest\Webtrees\FontAwesome; use Fisharebest\Webtrees\Functions\FunctionsDate; use Fisharebest\Webtrees\Functions\FunctionsEdit; +use Fisharebest\Webtrees\Html; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Site; use Fisharebest\Webtrees\Stats; @@ -273,7 +274,7 @@ class HtmlBlockModule extends AbstractModule implements ModuleBlockInterface { <?= I18N::translate('Title') ?> </label> <div class="col-sm-9"> - <input class="form-control" type="text" id="title" name="title" value="<?= Filter::escapeHtml($title) ?>"> + <input class="form-control" type="text" id="title" name="title" value="<?= Html::escape($title) ?>"> </div> </div> @@ -310,7 +311,7 @@ class HtmlBlockModule extends AbstractModule implements ModuleBlockInterface { </div> <div class="row form-group"> - <textarea name="html" id="html" class="html-edit" rows="10"><?= Filter::escapeHtml($html) ?></textarea> + <textarea name="html" id="html" class="html-edit" rows="10"><?= Html::escape($html) ?></textarea> </div> <fieldset class="form-group"> |
