Skip to main content

apply_marker_content

Function apply_marker_content 

Source
pub fn apply_marker_content(existing: &str, snippet: &str) -> String
Expand description

Apply marker-delimited content to a string.

  • If markers exist, replace content between them.
  • If no markers, append the content.
  • If the string is empty, just use the content.