pcdata.h 366 B

12345678910
  1. #pragma once
  2. #include <util/generic/fwd.h>
  3. /// Converts a text into HTML-code. Special characters of HTML («<», «>», ...) replaced with entities.
  4. TString EncodeHtmlPcdata(const TStringBuf str, bool qAmp = true);
  5. void EncodeHtmlPcdataAppend(const TStringBuf str, TString& strout);
  6. /// Reverse of EncodeHtmlPcdata()
  7. TString DecodeHtmlPcdata(const TString& sz);