??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/mayshine.co.uk/wp-content/plugins/surerank/src/functions/sanitize-html.js
⬅ Kembali
import DOMPurify from 'dompurify';
/**
* Sanitize a string of HTML while explicitly allowing the `target` attribute.
*
* By default DOMPurify may strip attributes such as `target` which are
* commonly used on anchor tags for opening links in a new tab. Since the
* plugin renders messages that include `<a>` elements we need to keep
* `target` intact so that links still open correctly.
*
* @param {string} dirty HTML to clean
* @return {string} Cleaned HTML string
*/
export const sanitizeHTML = ( dirty ) =>
DOMPurify.sanitize( dirty, { ADD_ATTR: [ 'target' ] } );
Nama
Tipe
Ukuran
Diubah
Aksi
📜 api-fetch-middleware.js
js
8.3 KB
2026-06-17 16:29
📜 api.js
js
9.4 KB
2026-06-17 16:29
📜 nudges.js
js
2.6 KB
2026-05-20 12:46
📜 page-content-generator.js
js
17.4 KB
2026-02-25 16:34
📜 render-queue.js
js
1.8 KB
2025-10-13 14:28
📜 replacement.js
js
1 KB
2025-10-29 08:52
📜 role-capabilities.js
js
430 B
2026-04-15 18:21
📜 router.js
js
11.2 KB
2026-04-15 18:21
📜 sanitize-html.js
js
579 B
2026-03-18 18:09
📜 utils.js
js
31.8 KB
2026-06-25 16:30
📜 variables.js
js
678 B
2025-06-27 15:25