refactor: remove test redundancy, reduce API surface

- Remove duplicate xml_escape tests from sitemap.rs and feed.rs
  (already tested in escape.rs)
- Make html_escape_into private (only used internally)
This commit is contained in:
Timothy DeHerrera
2026-02-06 00:33:10 -07:00
parent 3faa78aadb
commit c8ddfb444a
3 changed files with 1 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ pub fn html_escape(s: &str) -> String {
/// Escape HTML characters into an existing string.
///
/// This is more efficient when building output incrementally.
pub fn html_escape_into(out: &mut String, s: &str) {
fn html_escape_into(out: &mut String, s: &str) {
for c in s.chars() {
match c {
'&' => out.push_str("&"),