libhtmlpp 1.0.0
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
html.h File Reference

Public declarations for libhtmlpp HTML element types and utilities. More...

#include <sys/types.h>
#include <string>
#include <cstring>
#include <vector>
#include <stack>
#include <memory>
Include dependency graph for html.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  libhtmlpp::Element
 Abstract base class for all nodes in the HTML tree. More...
 
class  libhtmlpp::HtmlElement
 
struct  libhtmlpp::HtmlElement::Attributes
 
class  libhtmlpp::TextElement
 Leaf node representing plain text content of an HTML document. More...
 
class  libhtmlpp::CommentElement
 Leaf node representing an HTML comment (). More...
 
class  libhtmlpp::ScriptElement
 Element representing a <script> tag and its text content. More...
 
class  libhtmlpp::SvgElement
 Element representing an embedded <svg> tag and its attributes/content. More...
 
class  libhtmlpp::TextArea
 Element representing an embedded <textarea> tag and its attributes/content. More...
 
class  libhtmlpp::HtmlString
 
class  libhtmlpp::HtmlPage
 High level loader/saver for HTML documents (files and strings). More...
 
class  libhtmlpp::HtmlTable
 
class  libhtmlpp::HtmlTable::Column
 
class  libhtmlpp::HtmlTable::Row
 

Namespaces

namespace  libhtmlpp
 Core namespace for the libhtmlpp HTML parsing and printing library.
 

Enumerations

enum  libhtmlpp::ElementType {
  libhtmlpp::TextEl =0 , libhtmlpp::HtmlEl =1 , libhtmlpp::CommentEl =2 , libhtmlpp::ScriptEL =3 ,
  libhtmlpp::SvgEL =4 , libhtmlpp::TextAreaEL =5
}
 

Functions

void libhtmlpp::print (const Element &element, HtmlString &output, bool formated=false)
 Serializes an element (and its subtree) into an HtmlString.
 
void libhtmlpp::HtmlDecode (const std::string &input, HtmlString &output)
 Decodes special HTML characters in a string and appends to an HtmlString.
 
void libhtmlpp::HtmlDecode (const std::string &input, std::string &output)
 Decodes special HTML characters in a string and appends to an std::string.
 
void libhtmlpp::HtmlEncode (const std::string &input, std::string &output)
 Encodes special HTML characters in a string and writes into std::string.
 
std::ostream & operator<< (std::ostream &os, const libhtmlpp::HtmlString &p)
 Streams an HtmlString to an output stream using its underlying string.
 

Detailed Description

Public declarations for libhtmlpp HTML element types and utilities.

Date
2025-10-30

This file is part of libhtmlpp and provides HTML parsing, DOM-like element types, serialization helpers, and encoding utilities.

Definition in file html.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const libhtmlpp::HtmlString p 
)

Streams an HtmlString to an output stream using its underlying string.

Parameters
osOutput stream.
pHtmlString to stream.
Returns
Reference to os.

Definition at line 667 of file html.cpp.