• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

How can convert html tag to style in plugin developing

Community Beginner ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

The text contains HTML tags, and I want to find and replace them, such as making the text between <b></b> bold, the text between <i></i> italicized, and <br> for line breaks. Is there an interface that can accomplish this? 

TOPICS
SDK

Views

184

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

Have a look at BeautifulSoup 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

thank you ! I think python library couldn't help me

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

@Eugene Tyson I think BeautifulSoup is a Phython library. However, the idea is fine to use an HTML parser. @dorinho search Github for a HTML parser for C++ and that should help you in our opinion.

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

@Manan Joshi  Thanks. I will have a try.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

They said for a plugin I didn't know what the plugin is or how it's being created. 

 

In that case - maybe DOM manipulation in Javascript - would that work?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 27, 2024 Mar 27, 2024

Copy link to clipboard

Copied

LATEST

Hi @Eugene Tyson,

There are many ways technologies we can extend/automate InDesign. See my description for the same in another discussion

https://community.adobe.com/t5/indesign-discussions/what-is-the-difference-between-indesign-plugin-e...

Another new thing has been added to this mix i.e. UXP I am sure you must have read about it. This is again HTML + JS

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines