@ape.swap/bonds-sdk 4.5.8-test.0 → 4.5.8-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -67858,8 +67858,8 @@ const Recommendations = ({ billAddress }) => {
|
|
|
67858
67858
|
// Custom HTML sanitizer
|
|
67859
67859
|
function sanitizeHTML(html) {
|
|
67860
67860
|
var _a;
|
|
67861
|
-
const tagWhitelist = ['a', 'br', 'span']; // Allowed tags
|
|
67862
|
-
const attrWhitelist = ['target', 'rel', 'style', 'href']; // Allowed attributes
|
|
67861
|
+
const tagWhitelist = ['a', 'br', 'span', 'img']; // Allowed tags
|
|
67862
|
+
const attrWhitelist = ['target', 'rel', 'style', 'href', 'src', 'alt']; // Allowed attributes
|
|
67863
67863
|
const doc = new DOMParser().parseFromString(html, 'text/html');
|
|
67864
67864
|
const elements = doc.body.querySelectorAll('*');
|
|
67865
67865
|
for (const el of elements) {
|