Module: js-whatever/js/escape-with-links

js-whatever/js/escape-with-links

HTML escapes a string, replacing any hyperlinks found with <a> tags

Parameters:
Name Type Description
text string

The text to escape

catchSpaces boolean

Whether spaces should be treated as part of the link (true) or as the end of the
link (false)

target string

The 'target' attribute for the <a> tag of any links found, e.g. '_blank'

className string

The class to put on the <a> tag of any links found

Source:
Returns:

The original string, HTML escaped and with links wrapped in <a> tags

Type
string
Source:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.