pub fn body_text(body: &Option<PhpDocText>) -> Option<String>Expand description
Get the text content of a tag body, if present.
ยงExample
use phpdoc_parser::{parse, find_tag, body_text};
let doc = parse("/** @param int $x */");
let param = find_tag(&doc, "param").unwrap();
let text = body_text(¶m.body).unwrap();
assert!(text.contains("$x"));