mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2025-01-06 11:14:10 +00:00
57762e0417
Bug: T165036 Change-Id: I17d374eaac6627ca6a8ba178862b2a9cff2538c0
14 lines
226 B
JavaScript
14 lines
226 B
JavaScript
/**
|
|
* @module templateUtil
|
|
*/
|
|
|
|
const mw = window.mediaWiki;
|
|
|
|
/**
|
|
* @param {string} str
|
|
* @return {string} The string with any HTML entities escaped.
|
|
*/
|
|
export function escapeHTML( str ) {
|
|
return mw.html.escape( str );
|
|
}
|