Skip to content
Snippets Groups Projects
Commit c3dccba2 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#212285 by wrwrwr: hr should be treated as a block level tag

parent 354b62a0
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -865,7 +865,7 @@ function _filter_url_trim($text, $length = NULL) { ...@@ -865,7 +865,7 @@ function _filter_url_trim($text, $length = NULL) {
*/ */
function _filter_autop($text) { function _filter_autop($text) {
// All block level tags // All block level tags
$block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6])'; $block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6]|hr)';
// Split at <pre>, <script>, <style> and </pre>, </script>, </style> tags. // Split at <pre>, <script>, <style> and </pre>, </script>, </style> tags.
// We don't apply any processing to the contents of these tags to avoid messing // We don't apply any processing to the contents of these tags to avoid messing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment