- Issue created by @abhinand gokhala k
- 🇺🇸United States jrockowitz Brooklyn, NY
Can you please be more specific on the usecase. Why should the script tag be removable
- 🇺🇸United States jrockowitz Brooklyn, NY
You can use hook_module_implements_alter() to ensure your module overrides the schemadotorg_jsonld.
/** * Implements hook_module_implements_alter(). */ function my_module_module_implements_alter(array &$implementations, string $hook): void { if ($hook === 'page_attachments_alter') { $implementation = $implementations[my_module']; unset($implementations[my_module']); $implementations['my_module'] = $implementation; } }
- 🇮🇳India abhinand gokhala k
@jrockowitz, thank you for your comments. I attempted to remove unwanted HTML tags from the schema values. I had tried step #5 before creating this issue, but it didn't work at that time, possibly due to a typo. However, it's working now, so we can proceed in that manner. Thank you for your excellent support.
- Status changed to Closed: works as designed
9 months ago 4:58am 1 April 2024 - Issue was unassigned.