shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
extractCssClassesNames
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.html
This function allows you to extract all the classes names from a passed html string. You can use it with other things than html but depending on the complexity of your string, it may not work as expected…
Params
- html*-String
The HTML to process.
Return
- -String[]
The finded css classes names
Example
import { extractCssClassesNames } from '@blackbyte/sugar/html';
extractCssClassesNames('...');Settings
- expandPleasantCssClassnametrueBoolean
Specify if you want to expand the pleasant css classes names like “s-typo:p” to “s-typo—p”
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space