|
Squid Web Cache v8/master
|
#include "squid.h"#include "html/Quoting.h"#include "sbuf/SBuf.h"#include <array>#include <cstring>Go to the source code of this file.
Functions | |
| static const auto & | EscapeSequences () |
| char * | html_quote (const char *string) |
|
static |
| char * html_quote | ( | const char * | string | ) |
Obtain a static buffer containing an HTML-encoded version of the given c-string.
HTML reserved characters are replaced with character references per https://html.spec.whatwg.org/#character-references
Definition at line 42 of file Quoting.cc.
References EscapeSequences(), xcalloc(), and xfree.
Referenced by ErrorState::compileLegacyCode(), Ftp::Gateway::htmlifyListEntry(), CommonNamesPrinter::matchDomainName(), Security::ErrorDetail::printCaName(), Security::ErrorDetail::printSubject(), and TestHtmlQuote::test_html_quote_cstr().