spamscanner/url-regex-safe

Capture group support?

oguzgelal opened this issue · 0 comments

In order to do things like:

escapeHTML(text).replace(
  urlRegexSafe(),
  '<a href="$1" target="_blank" rel="noreferrer noopener">$1</a>'
)