Merge pull request #31514 from marination/isolated-headlines-v2
fix: Faulty HTML tag check condition in `show_message`
This commit is contained in:
commit
dab863db2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue