Commit b7af5467 authored by Medicean's avatar Medicean

(Change:toastr) 保留 <br/>

parent 37f871bb
...@@ -235,19 +235,23 @@ ...@@ -235,19 +235,23 @@
if (map.title) { if (map.title) {
$titleElement.append(String(map.title) $titleElement.append(String(map.title)
.replace(/<br\/>/g, "###asbr###")
.replace(/&/g, "&amp;") .replace(/&/g, "&amp;")
.replace(/>/g, "&gt;") .replace(/>/g, "&gt;")
.replace(/</g, "&lt;") .replace(/</g, "&lt;")
.replace(/"/g, "&quot;")).addClass(options.titleClass); .replace(/"/g, "&quot;")
.replace(/###asbr###/g, "<br/>")).addClass(options.titleClass);
$toastElement.append($titleElement); $toastElement.append($titleElement);
} }
if (map.message) { if (map.message) {
$messageElement.append(String(map.message) $messageElement.append(String(map.message)
.replace(/<br\/>/g, "###asbr###")
.replace(/&/g, "&amp;") .replace(/&/g, "&amp;")
.replace(/>/g, "&gt;") .replace(/>/g, "&gt;")
.replace(/</g, "&lt;") .replace(/</g, "&lt;")
.replace(/"/g, "&quot;")).addClass(options.messageClass); .replace(/"/g, "&quot;")
.replace(/###asbr###/g, "<br/>")).addClass(options.messageClass);
$toastElement.append($messageElement); $toastElement.append($messageElement);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment