Skip to content

llms.txt doesn't strip html tags from product short descriptions #22451

@PaulSchiretz

Description

@PaulSchiretz
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

I would expect that the product short descriptions in the llms.txt file are stripped from h1,h2,h3,em,p,span html tags. But they tags are not stripped from short description at all. Can we please do this? Or at least add a filter so we can optionally do this?

To Reproduce

Step-by-step reproduction instructions

  1. Create a Woocommerce Product with an html tag in the short description <h2>Some Random heading</h2><p>This is some paragraph</p>
  2. See the output in llms.txt for this product, it leaves html tags in the llms.txt: \<h2\>Some Random heading</h2\>This is some paragraph

Expected results

  1. Some Random heading This is some paragraph

Actual results

  1. \<h2\>Some Random heading</h2\>This is some paragraph

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions