pub fn generate_meta_tags(html: &str) -> Result<String>Expand description
Generates meta tags for SEO purposes.
§Arguments
html- The HTML content to analyze
§Returns
Returns a Result containing the generated meta tags as a string.
§Errors
Returns an error if:
- The HTML input is too large (> 1MB)
- Required elements (title, description) are missing
§Examples
use html_generator::seo::generate_meta_tags;
let html = r#"<html><head><title>Test</title></head><body><p>Content</p></body></html>"#;
let meta_tags = generate_meta_tags(html)?;