ΒΆstd::string EscapeText(llvm::StringRef s,
                       bool EscapeSpaces = false,
                       bool ReplaceTabs = false)

Description

EscapeText - HTMLized the provided string so that special characters in 's' are not interpreted as HTML tags. Unlike the version of EscapeText that rewrites a file, this version by default replaces tabs with spaces.

Declared at: clang/include/clang/Rewrite/Core/HTMLRewrite.h:60

Parameters

llvm::StringRef s
bool EscapeSpaces = false
bool ReplaceTabs = false