handle_entry_element

Function handle_entry_element 

Source
pub fn handle_entry_element(
    tag: &[u8],
    attrs: &[(Vec<u8>, String)],
    text: &str,
    entry: &mut Entry,
    limits: &ParserLimits,
) -> bool
Expand description

Handle Creative Commons element at entry level

Converts CC license information to a link with rel="license" and adds it to the entry’s links collection.

§Arguments

  • tag - Element local name (e.g., “license”)
  • attrs - Element attributes as (name, value) pairs
  • text - Element text content
  • entry - Entry to update
  • limits - Parser limits for bounded collections

§Returns

true if element was recognized and handled, false otherwise