Results 1 to 9 of 9
  1. #1

    Default HTML Help - & - & Issue


    nvm................
    Last edited by basikoncept; 04-03-2010 at 08:39 PM.

  2. #2
    this topic seems to be more suited for the programming thread

  3. #3
    Quote Originally Posted by Deathnote View Post
    this topic seems to be more suited for the programming thread
    Ako lang gi-post diri kay web-related man. Salamat, I think mas sakto ka. Mods paki move lang or unsa ba. Salamat.
    *still looking for an answer though...

  4. #4
    hahaha... convert it and that's it. that's related to programming and encoding convertion. It's not really an issue, & and & are useful in different ways.

  5. #5
    C.I.A. cliff_drew's Avatar
    Join Date
    Oct 2008
    Gender
    Male
    Posts
    4,571
    Blog Entries
    2
    Quote Originally Posted by basikoncept View Post
    Guys, naa ba paagi na ang & sa imo URL dili i-substitute sa browser ug &

    Example:
    Mao ni ako a na tag with the link
    <a href="http://www.mylink.com/aID=1234&bID=1234=test.htm">

    Then kung naa na sa brwoser kay kani naman i-display:
    <a href="http://www.mylink.com/aID=1234&amp;bID=1234=test.htm">


    Kahibaw ko sa Javascript kung i-enclose nimo ug
    <!--
    //-->

    kay dili na niya i-convert ang & to &amp; pero unsaon na siya sa HTML? Naa bay paagi ana? Salamat.
    Substitute "&" by its equivalent hex code "%26". HTH

  6. #6
    is the link generated by some script or code? what language? kung html ra na, you need to convert them manually.

    kung javascript na gikan then you can use this code
    Code:
    /* This script and many more are available free online at
    The JavaScript Source!! http://javascript.internet.com
    Created by: Ultimater | http://webdeveloper.com/forum/member.php?u=30185 */
    function html_entity_decode(str) {
      var ta=document.createElement("textarea");
      ta.innerHTML=str.replace(/</g,"&lt;").replace(/>/g,"&gt;");
      return ta.value;
    }
    
    alert(html_entity_decode("¿Hablas bien el espa&ntilde;ol?"));
    The JavaScript Source: Snippets : Convert HTML Entities


    if ever php pud ni cya, here's a simple html entity decode snip
    Code:
    <?php
    $orig = "I'll \"walk\" the <b>dog</b> now";
    
    $a = htmlentities($orig);
    
    $b = html_entity_decode($a);
    
    echo $a; // I'll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; now
    
    echo $b; // I'll "walk" the <b>dog</b> now
    


    i hope this helps

  7. #7
    Quote Originally Posted by basikoncept View Post
    Guys, naa ba paagi na ang & sa imo URL dili i-substitute sa browser ug &amp;

    Example:
    Mao ni ako a na tag with the link
    <a href="http://www.mylink.com/aID=1234&bID=1234=test.htm">

    Then kung naa na sa brwoser kay kani naman i-display:
    <a href="http://www.mylink.com/aID=1234&amp;bID=1234=test.htm">


    Kahibaw ko sa Javascript kung i-enclose nimo ug
    <!--
    //-->

    kay dili na niya i-convert ang & to &amp; pero unsaon na siya sa HTML? Naa bay paagi ana? Salamat.
    Does the given link has really an output? I think you need to change it link this:

    <a href="http://www.mylink.com/aID=1234&bID=1234=test.htm">My Site</a>

    ... you actually miss a closing link tag...

    also, i tried to right it in notepad and save as an .html, but nothing changed in the source code in the browser..

  8. #8
    Junior Member
    Join Date
    Nov 2008
    Gender
    Male
    Posts
    141
    is this in php?.. u might want to use the urlencode() function. limot ko how to use it ..check na lang sa php site unsaon pag.gamit..

  9. #9
    Quote Originally Posted by BroadBandAC View Post
    Does the given link has really an output? I think you need to change it link this:

    <a href="http://www.mylink.com/aID=1234&bID=1234=test.htm">My Site</a>

    ... you actually miss a closing link tag...

    also, i tried to right it in notepad and save as an .html, but nothing changed in the source code in the browser..
    Sorry forgot the closing tag...
    @all: Salamat sa help, testing it now... (:

  10.    Advertisement

Similar Threads

 
  1. For Sale: Yamaha YB15 Bass Amp (Practice Amp)
    By junax in forum Music & Movies
    Replies: 16
    Last Post: 09-29-2012, 05:21 PM
  2. Want To Buy: Guitar Amps & Bass Amps!! Budget 3.5k Below only!!! :)
    By strings27 in forum Music & Movies
    Replies: 35
    Last Post: 01-09-2012, 12:26 AM
  3. Looking For: guitar amp & bass amp
    By devastator in forum Music & Movies
    Replies: 10
    Last Post: 02-21-2011, 10:11 PM
  4. Looking For: Small amp,, (room amp)
    By jakeass in forum Music & Movies
    Replies: 11
    Last Post: 03-04-2010, 10:22 PM
  5. Help on Business Registration Issue
    By knight007 in forum Business, Finance & Economics Discussions
    Replies: 13
    Last Post: 09-21-2009, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top