Merge pull request #31514 from marination/isolated-headlines-v2

fix: Faulty HTML tag check condition in `show_message`
This commit is contained in:
gavin 2025-03-06 17:08:21 +01:00 committed by GitHub
commit dab863db2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ frappe.ui.form.Layout = class Layout {
// Prepare Block
let $html;
if (html.substring(0, 1) !== "<") {
if (!frappe.utils.is_html(html)) {
// wrap in a block if `html` does not contain html tags
$html = $("<div class='form-message border-bottom'></div>").text(html);
} else {