handle_feed_element

Function handle_feed_element 

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

Handle Creative Commons element at feed level

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

§Arguments

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

§Returns

true if element was recognized and handled, false otherwise