UNPKG
yoastseo-dep
Version:
latest (1.91.2-A)
1.91.2
1.91.2-A
Yoast clientside page analysis
github.com/Yoast/
Yoast/wordpress-seo
yoastseo-dep
/
src
/
markers
/
addMark.js
10 lines
(9 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * Marks a text with HTML tags * *
@param
{string} text The unmarked text. *
@returns
{string} The marked text. */
export
default
function
(
text
)
{
return
"<yoastmark class='yoast-text-mark'>"
+ text +
"</yoastmark>"
; }