#include "squid.h"
#include "html/Quoting.h"
#include "sbuf/SBuf.h"
#include <array>
#include <cstring>
![](html_2Quoting_8cc__incl.png)
Go to the source code of this file.
Functions | |
static const auto & | EscapeSequences () |
char * | html_quote (const char *string) |
Function Documentation
◆ EscapeSequences()
|
static |
◆ html_quote()
char* html_quote | ( | const char * | ) |
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().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products