FLAT
FLAT
Couper
Sevenval Technologies
Docker Image
Github
master
FLAT
Cookbook
Reference
Functions
xml-parse()
urldecode(), url-decode()
ends-with()
join()
split()
content()
array()
json-to-csv()
decrypt-xml()
json-stringify()
replace()
base64-encode()
verify-signature()
matches()
body()
ldap-query()
trim()
calc-signature()
array-reverse()
sort()
file-exists()
decrypt()
get-log()
jwt-encode()
apply-codecs()
base64-decode()
uuid3() and uuid4()
lookup()
json-to-xml()
fit-log()
toupper()
fit-document()
tolower()
has-class()
encrypt()
urlencode(), url-encode()
unixtime()
fit-serialize()
xml-to-json()
jwt-decode()
json-doc()
html-parse()
verify-xmldsig()
ldap-lookup()
capitalize-first()
md5()
json-parse()
Flow Actions
OpenAPI / Swagger Integration
Templating
Variables
Flow
Configuration
Testing
flat CLI
Debugging
Administration
Tutorial
Changelog
Powered by GitBook

html-parse()

node-set html-parse(string html)

The html-parse function accepts exactly one argument. The value of the argument is converted to a string and parsed as an HTML document. The function returns a node-set containing the document node at the root of the resulting tree.

Example

<flow>
<copy in="a.html" out="$html"/>
<eval out="$parsedHTML">html-parse($html)</eval>
<template>
{
"firstP": {{ $parsedHTML/html/body/main/p[1] }}
}
</template>
</flow>
Previous
json-doc()
Next
verify-xmldsig()
Last updated 1 year ago
Edit on GitHub