module

Fetcher::EntityExpansionGuard

Shared module for XXE and entity expansion protection. Provides consistent security checks across DOM and streaming parsers.

Class methods

check(content : String, max_entities : Int32 = MAX_ENTITY_DEFINITIONS) : Nil

Perform all entity expansion checks on content

Source
count_entity_definitions(content : String) : Int32

Count ENTITY definitions in content

Source