Skip to main content

sanitize_block_comment

Function sanitize_block_comment 

Source
pub fn sanitize_block_comment(s: &str) -> String
Expand description

Sanitizes untrusted text for inclusion in a block comment (/* ... */ or /** ... */).

Breaks any */ sequence and strips \r so block-comment breakout is impossible.