Skip to contents

Identical to get_section_text() but preserves the raw HTML in a content_html column instead of stripping tags, and adds a content_markdown column with a markdown conversion. This is critical for extracting data from sections that contain HTML tables (e.g., dimensional standards).

Usage

get_section_html(
  node_id = NULL,
  product_id,
  job_id = NULL,
  past_job_id = NULL,
  show_changes = FALSE
)

Arguments

node_id

A unique identifier for a node within the specified product (ordinance)

product_id

A unique identifier for a product

job_id

Optional job identifier; required when show_changes = TRUE

past_job_id

Optional prior job identifier to diff against; required when show_changes = TRUE

show_changes

If TRUE, request a redline comparison of job_id against past_job_id. The insertion/deletion markup is preserved in the returned content_html column.

Value

A dataframe with the raw HTML content and metadata for the specified node. Columns: id, heading, node_type, content_html, content_markdown.

Examples

if (FALSE) { # \dontrun{
get_section_html(node_id = "SUHITA", product_id = "12429")
} # }