');
+ $sanitizedText = preg_replace("/]*)>/i", "", $sanitizedText);
+ $sanitizedText = strip_tags_except_allowed_protocols($sanitizedText);
$OrigLink->update([
'button_id' => "93",
- 'title' => $request->text,
+ 'title' => $sanitizedText,
]);
}elseif($linkType->typename == "email"){
$LinkURL = "mailto:".$LinkURL;
@@ -387,8 +391,12 @@ class UserController extends Controller
}elseif($linkType->typename == "heading"){
$links->button_id = "42";
}elseif($linkType->typename == "text"){
+ $sanitizedText = $request->text;
+ $sanitizedText = strip_tags($sanitizedText, '
');
+ $sanitizedText = preg_replace("/]*)>/i", "", $sanitizedText);
+ $sanitizedText = strip_tags_except_allowed_protocols($sanitizedText);
$links->button_id = "93";
- $links->title = $request->text;
+ $links->title = $sanitizedText;
}elseif($linkType->typename == "email"){
$links->link = "mailto:".$links->link;
$links->button_id = $button?->id;
@@ -789,6 +797,7 @@ class UserController extends Controller
$pageName = $request->littlelink_name;
$pageDescription = strip_tags($request->pageDescription, '