Skip to main content

wrap_plain_text

Function wrap_plain_text 

Source
pub fn wrap_plain_text(text: &str) -> String
Expand description

Wrap plain text in HTML-safe <pre><code> tags.

HTML special characters are escaped before wrapping.