rss_gen::generator

Function sanitize_content

Source
pub fn sanitize_content(content: &str) -> String
Expand description

Sanitizes the content by removing invalid XML characters and escaping special characters.

§Arguments

  • content - A string slice containing the content to be sanitized.

§Returns

A String with invalid XML characters removed and special characters escaped.