Page Content: Added form elements to filtering

Added and updated tests to cover.

Also updated API auth to a narrower focus of existing session instead of also existing user auth.
This is mainly for tests, to ensure they're following the session
process we'd see for activity in the UI.
This commit is contained in:
Dan Brown
2026-01-29 14:54:08 +00:00
parent 6a63b38bb3
commit c77a0fdff3
11 changed files with 176 additions and 31 deletions

View File

@@ -50,7 +50,7 @@ class EntityHtmlDescription
return $html;
}
return HtmlContentFilter::removeScriptsFromHtmlString($html);
return HtmlContentFilter::removeActiveContentFromHtmlString($html);
}
public function getPlain(): string

View File

@@ -318,7 +318,7 @@ class PageContent
}
if (!config('app.allow_content_scripts')) {
HtmlContentFilter::removeScriptsFromDocument($doc);
HtmlContentFilter::removeActiveContentFromDocument($doc);
}
return $doc->getBodyInnerHtml();