FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.stripTags() function

string fcf.stripTags(string a_str)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Removes HTML tags from a source string

Arguments

string a_str
- Source string
Result
string
- Result string

Example: Function application

let newString = fcf.stripTags(`<header>Title</header>\n<div>Content</div>`); console.log(newString);

Output:

Title Content