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

  • SEARCH
  • Home
  • 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 8801235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:47:01+00:00 2026-06-14T00:47:01+00:00

I have an article in Joomla 2.5 that has JavaScript in it. And within

  • 0

I have an article in Joomla 2.5 that has JavaScript in it. And within the JS I have a text string holding an email:

var my_email = "a@b.com" ;

this string triggers the email cloaking plugin built into Joomla. Of course when I disable the plugin, then there is no problem. But I do not want to disable it, as other parts of the site will benefit from it.

Is there another solution? Apparently there is a PHP class that offers this:

echo JHtml::_('email.cloak', 'demo@example.com'); 

from http://docs.joomla.org

  • 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-14T00:47:02+00:00Added an answer on June 14, 2026 at 12:47 am

    You can disable the cloak with in a single article by using this tag {emailcloak=off}

    This will only affect the article that you place the tag in — it doesn’t matter where the tag goes it disables it for the whole article. (The tag is stripped out at the same time).

    Of course this means the address you have in Javascript will be visible to bots.

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

Sidebar

Related Questions

I have model Article it has field title with some text that may contain
Basically I have a joomla instance with an article that uses URL rewriting. http://example.com/kids-and-family/185-summer-camp.html
Say that I have an article with multiple pages. Each page has a short
I have this code that extracts the first image from an article in joomla:
Joomla version 1.7 I have an article and a content plugin that changes content
I am working in Joomla 1.5 and have an article that I don't want
I have a joomla article that contain a form was createed using rsform component
I have an table Article that is in relationship with Steps (OneToMany) and Steps
I have a div (article) which has two childs (header and #content_outer). Header has
I am working on Joomla 1.5 . i have a link to an article

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.