Console
hyTags
Home
Home
Documentation
Documentation
fragment-from-string
Parses an HTML string and returns its elements as a fragment.
Parameter
Type
Description
value
String
The HTML string to parse.
return
fragment
The parsed elements from the HTML string as a fragment.
Test Case:
Parse HTML string to fragment
<div></div>
<div></div>
<fragment-from-string value="<div>hello</div>">
<fragment-from-string value="<div>hello</div>">
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed