Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
Strip the insert and HTML tags in the description test
Browse files Browse the repository at this point in the history
qzminski committed Jul 30, 2016
1 parent 7fc898a commit fbe7885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Derhaeuptling/SeoSerpPreview/Test/DescriptionTest.php
Original file line number Diff line number Diff line change
@@ -81,6 +81,8 @@ public function run(array $data, $table)
*/
private function check($value)
{
$value = strip_tags(strip_insert_tags($value));

// The description does not exist
if (!$value) {
throw new ErrorException($GLOBALS['TL_LANG']['SST']['test.description']['empty']);

0 comments on commit fbe7885

Please sign in to comment.