pub fn highlight<T: AsRef<str>>(text: T) -> String
Expand description

Highlight sounds in the text with html tags

Example

use text_to_sounds::{highlight};

assert_eq!(highlight("The text just in case"), "<span class='Th'>Th</span>e <span class='Ptk'>t</span>ex<span class='Ptk'>t</span> <span class='Dj'>j</span>us<span class='Ptk'>t</span> in <span class='Ptk'>c</span>ase".to_string());