Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8553037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:33:26+00:00 2026-06-11T14:33:26+00:00

I need to put HTML in the custom option labels for each product in

  • 0

I need to put HTML in the custom option labels for each product in my Magento store, but by default HTML isn’t parsed by Magento when it is put into the custom options interface. I’m assuming that there is something like “$this->htmlEscape()” in the file that displays custom options, and I’d like to remove it so that I can add HTML into my option labels.

I’m having difficulty finding the file in Magento that displays custom options so that I can remove this line. Does anyone have any wisdom they can offer?

Thank you, I really appreciate the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:33:27+00:00Added an answer on June 11, 2026 at 2:33 pm

    Have a look in template files that are located in /catalog/product/view/options/type/

    You will find the htmlEscape() inside the first <dt> which encloses the option title.
    Here is a test that I have done :

    • Option input type: “Field”

    • Option title:

      <div class="block block-cart"><div class="block-title"><strong><span>My Stylish Option Title</span></strong></div></div>

    • Updated template
      file: catalog/product/view/options/type/text.phtml

    Rendering:

    stylish option title

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to export a gridview to excel, I put the return html code
I need to put several folders into artifact archive. Now I am doing it
I need to put one of my test cases into a pending state. I
I need to put 2 textures on the same Square, but it keeps crashing
I need to put the same NAME tag for Html.CheckBox somehow . How I
Do we need to put use strict in external js files if our html
I need to put unescaped URL generated from path into input element. routing.yml profile_delete:
I need to put some subtext in a Winforms C# labels .Text property. Is
I have the need to put a custom attribute on an anchor which I
I've got hree html tables which I wanted to put into tabs. All three

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.