aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/html/pcdata/pcdata.h
blob: c1de2d0a31a9da54a62ee3bbea99fbc116e06360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include <util/generic/fwd.h>

/// Converts a text into HTML-code. Special characters of HTML («<», «>», ...) replaced with entities.
TString EncodeHtmlPcdata(const TStringBuf str, bool qAmp = true); 
void EncodeHtmlPcdataAppend(const TStringBuf str, TString& strout); 

/// Reverse of EncodeHtmlPcdata()
TString DecodeHtmlPcdata(const TString& sz);