IHP Api Reference
Copyright(c) digitally induced GmbH 2021
Safe HaskellSafe-Inferred

IHP.ServerSideComponent.HtmlParser

Description

 

Documentation

parseHtml :: Text -> Either (ParseErrorBundle Text Void) Node Source #

data Node Source #

Constructors

Node 
TextNode

Note: doesn't unescape chars like <

Fields

PreEscapedTextNode

Used in script or style bodies

Fields

Children 

Fields

CommentNode

A Comment that is rendered in the final HTML

Fields

NoRenderCommentNode

A comment that is not rendered in the final HTML

Instances

Instances details
FromJSON Node Source # 
Instance details

Defined in IHP.ServerSideComponent.ControllerFunctions

Methods

parseJSON :: Value -> Parser Node #

parseJSONList :: Value -> Parser [Node] #

ToJSON Node Source # 
Instance details

Defined in IHP.ServerSideComponent.ControllerFunctions

Show Node Source # 
Instance details

Defined in IHP.ServerSideComponent.HtmlParser

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String

showList :: [Node] -> ShowS #

Eq Node Source # 
Instance details

Defined in IHP.ServerSideComponent.HtmlParser

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #