module

Fetcher::HTMLUtils

Constants

MAX_UNESCAPE_BYTESIZE = 100000

Maximum allowed length for unescaped text to prevent entity explosion attacks

Class methods

safe_url(url : String | Nil) : String
Source
sanitize_text(text : String | Nil, default : String = "") : String
Source