Title: Href problem
Last modified: August 8, 2018

---

# Href problem

 *  Resolved [bugrevealingbme](https://wordpress.org/support/users/bugrevealingbme/)
 * (@bugrevealingbme)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/href-problem/)
 * How do I need to put it in the href?
 * `<div class="stable div_margin"> <a class="btn_6" href=""http://bigota.d.miui.
   com/[remote_get url="view-source:http://update.miui.com/updates/miota-fullrom.
   php?d=aries&b=F&r=cn" start='V' stop='\']/[remote_get url="view-source:http://
   update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn" start='aries_images'
   stop='"']></a>`
    -  This topic was modified 7 years, 8 months ago by [bugrevealingbme](https://wordpress.org/support/users/bugrevealingbme/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhref-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/href-problem/#post-10572299)
 * How about something simpler, like this:
    `[preg_replace replace='/..aries_.*aries_/'
   with='/aries_'][remote_get url="view-source:http://update.miui.com/updates/miota-
   fullrom.php?d=aries&b=F&r=cn" start='/V' end='.tgz"' replace='/V' with='<a class
   ="btn_6" href="http://bigota.d.miui.com/V'][/preg_replace]>Download Link</a>`
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Eli](https://wordpress.org/support/users/scheeeli/).
    -  This reply was modified 7 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/href-problem/#post-10572339)
 * I cannot get the code to show up quite right on this forum because theya re reformatting
   what I type here but the email notice you got from my first attempt should be
   right and I think this will look nearly right on the forum but not show up right
   in the email notification:
    `[preg_replace replace='/..aries_.*aries_/' with='/
   aries_'][remote_get url="view-source:http://update.miui.com/updates/miota-fullrom.
   php?d=aries&b=F&r=cn" start='/V' end='.tgz"' replace='/V' with='<a class="btn_6"
   href="http://bigota.d.miui.com/V'][/preg_replace]>Download Link</a>`
 * Note: the forum chops off my closing anchor tag `</a>`
    -  This reply was modified 7 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 8 months ago](https://wordpress.org/support/topic/href-problem/#post-10572912)
 * Side note: I edited your post and put your code inside backticks using the CODE
   button on the editor.
 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/href-problem/#post-10586904)
 * [@sterndata](https://wordpress.org/support/users/sterndata/),
    Thanks Steve but
   I had already tried that and it did not work. I wish you would not have edited
   my second post because it was fine before but your changes broke the escape code
   for the HTML bracket in the shortcode, so now if the questioner copies what you
   correct in either of my replies then it will not work.
 * Personally I think this is a huge issue that WordPress needs to address on two
   fronts. As a moderator I would like your help to escalate the issue of not being
   able to post what you mean to say on the forums when you are needing to illustrate
   how to escape HTML brackets. This will be hard to explain on the forum because
   it is that very thing that I cannot post that I want you to see but I think I
   can convey the problem like this:
    If you want to show someone how to type the
   escape code for the HTML brackets ( i.e. < and > ) then you would use the & character
   followed by either lt; or gt; respectively. However, if you type this together
   like < (I just typed ” $ l t ; ” without the quotes or spaces) then it will just
   show up on the forums like this < as you see from this post. so, though a lot
   of trial and error I was able to get it to display properly by double escaping(
   escaping the first & in the escape) like this &lt; (what I really typed here 
   was & a m p ; l t ; again without those spaces) but this does not work at all
   when i wrap it in the CODE tag so that is why I did not do that, and that is 
   why you effectively broke my example when you did that to what I had finally 
   gotten to display right.
 * The other side of this, and the reason I have to try to talk about this issue
   on the forums at all, is that one cannot effectively place any HTML inside a 
   shortcode parameter without it braking the and automatically adding ending tags
   for the bits of html that were not meant to be displayed at all but were just
   supposed to be part of a shortcode parameter.
 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/href-problem/#post-10586913)
 * I am posting this code again so that the correct solution is here on this topic
   so please do not moderate this post as I will have it displaying the key points
   of the code correctly here:
    [preg_replace replace=’/..aries_.*aries_/’ with=’/
   aries_’][remote_get url=”view-source:[http://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn&#8221](http://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn&#8221);
   start=’/V’ end=’.tgz”‘ replace=’/V’ with=’&lt;a class=”btn_6″ href=”[http://bigota.d.miui.com/V’%5D%5B/preg_replace%5D>Download](http://bigota.d.miui.com/V’%5D%5B/preg_replace%5D>Download)
   Link
 * Note: you also need to add the closing anchor tag `</a>` after the “Download 
   Link”.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 7 months ago](https://wordpress.org/support/topic/href-problem/#post-10587005)
 * Sorry about that, @scheeli. You might want to put a ticket at `meta.trac.wordpress.
   org` to change the behavior of the forum software (or add some other tag to the
   editor).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Href problem’ is closed to new replies.

 * ![](https://ps.w.org/shortcurl/assets/icon-256x256.png?rev=1057953)
 * [EZ SHORTCURL Shortcodes to Fetch and Parse External Content](https://wordpress.org/plugins/shortcurl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcurl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcurl/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcurl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcurl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcurl/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/href-problem/#post-10587005)
 * Status: resolved