summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_cdata.cpp
blob: e5948bff13dfe9f609858c4d8813bd963a53d4af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "html.h"
#include "el_cdata.h"

litehtml::el_cdata::el_cdata(const std::shared_ptr<document>& doc) : element(doc)
{
	//m_skip = true;
}

void litehtml::el_cdata::get_text( string& text )
{
	text += m_text;
}

void litehtml::el_cdata::set_data( const char* data )
{
	if(data)
	{
		m_text += data;
	}
}