Problem/Motivation
When Use source vocabulary's full hierarchy is enabled in Suggest taxonomy tags section the results show extra content like ```html ..... ``` which does not looks good.
Steps to reproduce
Enable ai content suggestion module and enable Suggest taxonomy tags in admin/config/ai/suggestions
Edit/Add content and open the Suggest taxonomy tags section. Enable the Use source vocabulary and Use source vocabulary's full hierarchy checkboxes.
Click on Suggest taxonomy terms
Along with the suggested taxonomy terms ```html also appear in results.
Proposed resolution
Remove the ```html from the result
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | taxonomy term-after.png | 39.76 KB | prabha1997 |
| #5 | taxonomy term_before.png | 42.07 KB | prabha1997 |
| Screenshot from 2025-05-08 15-21-36.png | 34.45 KB | anjaliprasannan |
Issue fork ai-3523335
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anjaliprasannan commentedComment #4
anjaliprasannan commentedComment #5
prabha1997 commentedThe '

Use source vocabulary' field only became visible after applying the MR from this issue: https://www.drupal.org/project/ai/issues/3521499.I have tested this issue. Please review the before and after screenshots below for reference.
before
after
Comment #7
prashant.cNot sure why it was kind of markdown code with
```html, the changes fixes the issue. A rebase was needed which is done. Requesting maintainers to review.Comment #8
kristen polWe are doing some issue management housekeeping and adding/removing components.
We are removing the "Other Submodules" component and want people to categorize issues with the best module/submodule component.
Moving this issue to "AI Content Suggestions".
See #3533272: Update AI module project components for more details.
Comment #10
marcus_johansson commentedI gave a suggestion, check if that makes sense - otherwise I will merge as is.
Comment #11
anjaliprasannan commentedComment #12
anjaliprasannan commentedUpdated MR. Please review.
Comment #13
marcus_johansson commented