Skip to main content

sanitize_label

Function sanitize_label 

Source
pub fn sanitize_label(label: &str) -> String
Expand description

Sanitize a label for safe use in HTML/GraphML output.

  • Strips control characters
  • Truncates to 256 characters
  • HTML-escapes &, <, >, ", and '