Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post

    How to correct this issue?

    Hi,
    I was working in blogger and then it gave me a crash report and when It became okay and I open the html of post this is what I see, it is still okay but there are exta %20 and kind of stuff added to it, If i remove them manually it can take years can someone suggest me how to deal with it?

    Here is the code:

    Code:
    %3Cdiv+class%3D%22gameblkarea%22%3E%0D%0A%3Cdiv+class%3D%22tiltshadows%22%3E%0D%0A%3Carticle%3E%3Ca+href%3D%22http%3A%2F%2Fwww.bloghuts.com%2F2011%2F09%2Fcastle-wars-2.html%22%3E%3Cimg+alt%3D%22Castle+Wars+2%22+height%3D%2290%22+src%3D%22https%3A%2F%2Flh6.googleusercontent.com%2F-BNMxQx0yLd0%2FTmwbdwhSOGI%2FAAAAAAAABO4%2Fvse6JA_R8es%2Fs288%2F1.jpg%22+width%3D%2290%22+%2F%3E%3C%2Fa%3E%3C%2Farticle%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+class%3D%22happypara%22%3E%0D%0AAwesome+turn+based+strategic+card+game+with+unlockable+cards+and+multi-player+mode.+Castle+Wars+2+is+the+sequel+to+Castle+wars%2C+and+is+a+very+addictive+card+game+where+your+goal+is+to+crush+your+enemy%27s+castle+or+be+the+first+to+build+a+100+storey+castle.+Crush+or+be+crushed%21%0D%0A%3C%21--more--%3EUse+your+mouse+to+choose+which+step+to+take+against+ur+openent.There+are+different+kind+of+action+cards+which+u+can+click+and+take+that+action.Have+fun+while+playing+the+game.%0D%0A%3C%2Fdiv%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+class%3D%22gamebuttondiv%22%3E%0D%0A%3Ca+class%3D%22poplight+bloghutsgamebutton+buttonbloghuts+buttongradient%22+href%3D%22%23%3Fw%3D100%25%22+rel%3D%22popup_name%22%3EPlay%3C%2Fa%3E%3C%2Fdiv%3E%0D%0A%0D%0A%3Cdiv+class%3D%22popup_block%22+id%3D%22popup_name%22%3E%0D%0A%3Cdiv+class%3D%22gamesharebuttons+addthis_toolbox+addthis_default_style+%22%3E%0D%0A%3Ca+class%3D%22addthis_button_facebook_like%22+fb%3Alike%3Alayout%3D%22button_count%22%3E%3C%2Fa%3E%3Ca+class%3D%22addthis_button_tweet%22%3E%3C%2Fa%3E%3Ca+class%3D%22addthis_button_google_plusone%22+g%3Aplusone%3Asize%3D%22medium%22%3E%3C%2Fa%3E%3C%2Fdiv%3E%0D%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0D%0A%24%28document%29.ready%28function%28%29%7B%0D%0A++++%24%28%27a.poplight%5Bhref%5E%3D%23%5D%27%29.click%28function%28%29+%7B%0D%0A++++++++%24%28%27%3Ciframe%2F%3E%27%29%0D%0A++++++++++++.attr%28%27frameborder%27%2C+0%29%0D%0A++++++++++++.attr%28%27allowTransparency%27%2C+false%29%0D%0A++++++++++++.attr%28%27scrolling%27%2C+%27no%27%29%0D%0A++++++++++++.attr%28%27width%27%2C+%27100%25%27%29%0D%0A++++++++++++.attr%28%27height%27%2C+%2798%25%27%29%0D%0A++++++++++++.attr%28%27src%27%2C+%27http%3A%2F%2Ffiles.cryoffalcon.com%2Fbhgames%2Fstrategy%2FWar%2FCastle%2520Wars%25202.html%27%29%0D%0A++++++++++++.appendTo%28%27%23popup_name%27%29%3B%0D%0A++++%7D%29%3B%0D%0A%7D%29%3B%0D%0A%0D%0A%24%28%27%23popup_name+.close%27%29.live%28%27click%27%2C+function%d  TW"Cf%X $opup_name+iframe%27%29.remove%28%29%3B%0D%0A%7D%29%3B%0D%0A%3C%2Fscript%3E%3C%2Fdiv%3E%0D%0A%3Cdiv+class%3D%22sharecountercontainer%22%3E%0D%0A%3Cdiv+class%3D%22sharebuttoncounter%22%3E%0D%0A%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3EShare%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3EAnd%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3EBe%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3EA%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3ERainbow%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3EIn%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3ESomeone%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3EElse%27s%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3ECloud%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3E%3A%3C%2Fspan%3E%3C%2Fdiv%3E%0D%0A%3Cdiv+class%3D%22addthis_toolbox+addthis_default_style+%22%3E%0D%0A%3Ca+title%3D%27Click+If+You+Like+It%27+class%3D%22addthis_button_facebook_like+sharebuttoncounter%22+fb%3Alike%3Alayout%3D%22box_count%22%3E%3C%2Fa%3E%3Ca+title%3D%27Tweet+It%27+class%3D%22addthis_button_tweet+sharebuttoncounter%22+tw%3Acount%3D%22vertical%22%3E%3C%2Fa%3E%3Ca+title%3D%27Add+%2B1+If+You+Like+It%27+class%3D%22addthis_button_google_plusone+sharebuttoncounter%22+g%3Aplusone%3Asize%3D%22tall%22%3E%3C%2Fa%3E%3Ca+class%3D%22addthis_counter+sharebuttoncounter%22%3E%3C%2Fa%3E%3Cform+class%3D%22emailsubcounter%22+style%3D%22display%3Ainline%3B%22+action%3D%22http%3A%2F%2Ffeedburner.google.com%2Ffb%2Fa%2Fmailverify%22+method%3D%22post%22+target%3D%22popupwindow%22+onsubmit%3D%22window.open%28%27http%3A%2F%2Ffeedburner.google.com%2Ffb%2Fa%2Fmailverify%3Furi%3Dbloghuts%2Fvlwg%27%2C+%27popupwindow%27%2C+%27scrollbars%3Dyes%2Cwidth%3D550%2Cheight%3D520%27%29%3Breturn+true%22%3E%0D%0A%3Cinput+onfocus%3D%22if%28this.value%3D%3Dthis.defaultValue%29this.value%3D%26%2339%3B%26%2339%3B%3B%22+value%3D%22Enter+Your+Email+Address...%22+type%3D%22text%22+class%3D%22formbox%22+onblur%3D%22if%28this.value%3D%3D%26%2339%3B%26%2339%3B%29this.value%3Dthis.defaultValue%3B%22+style%3D%22width%3A200px%3B+height%3A27px%3B%22+name%3D%22email%22%2F%3E%3Cinput+type%3D%22hidden%22+value%3D%22bloghuts%2FvlwG%22+name%3D%22uri%22%2F%3E%3Cinput+type%3D%22hidden%22+name%3D%22loc%22+value%3D%22en_US%22%2F%3E%26nbsp%3B%3Cinput+class%3D%22formbutton+buttonbloghuts+buttongradient%22+value%3D%22Subscribe%22+type%3D%22submit%22+%2F%3E%3C%2Fform%3E%0D%0A%3Cdiv+class%3D%22addthis_toolbox+addthis_32x32_style+addthis_default_style%22%3E%0D%0A%3Cdiv+class%3D%22followuscont%22%3E%0D%0A%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3EFollow%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+sharecountertext%22%3EUs%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+sharecountertext%22%3E%3A%3C%2Fspan%3E%3C%2Fdiv%3E%0D%0A%3Ca+title%3D%27Be+a+Fan+at+Facebook%27+class%3D%22addthis_button_facebook_follow+followusbuttons%22+addthis%3Auserid%3D%22bloghuts%22%3E%3C%2Fa%3E%3Ca+title%3D%27Follow+Us+on+Twitter%27+class%3D%22addthis_button_twitter_follow+followusbuttons%22+addthis%3Auserid%3D%22bloghuts%22%3E%3C%2Fa%3E%3Ca+title%3D%27Add+Us+to+Your+Circles%27+class%3D%22addthis_button_google_follow+followusbuttons%22+addthis%3Auserid%3D%22u%2F1%2F107487329284612856325%22%3E%3C%2Fa%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+id%3D%22posttitle%22+style%3D%22display%3A+none%3B%22%3E%0D%0A%3Cspan+class%3D%22gamecategoriespara2+relatedposttitle%22%3EMore%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+relatedposttitle%22%3EWar%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara2+relatedposttitle%22%3EGames%3C%2Fspan%3E%3Cspan+class%3D%22gamecategoriespara1+relatedposttitle%22%3E%3A%3C%2Fspan%3E%3C%2Fdiv%3E%0D%0A%3Cscript+type%3D%27text%2Fjavascript%27%3E%0D%0Avar+defaultnoimage%3D%22https%3A%2F%2Flh6.googleusercontent.com%2F-_oie7lNHtzU%2FT6uAvFlmvmI%2FAAAAAAAAACM%2FGKoUEzn8YPs%2Fs0%2Fnoimage.png%22%3B%0D%0Avar+maxresults%3D14%3B%0D%0Avar+splittercolor%3D%22none%22%3B%0D%0Avar+relatedpoststitle+%3D+document.getElementById%28%22posttitle%22%29.innerHTML%3B%0D%0A%3C%2Fscript%3E%0D%0A%0D%0A%3Cmeta+name%3D%22description%22+content%3D%22Awesome+turn+based+strategic+card+game+with+unlockable+cards+and+multi-player+mode.+Castle+Wars+2+is+the+sequel+to+Castle+wars%2C+and+is+a+very+addictive+card+game+where+your+goal+is+to+crush+your+enemy%27s+castle+or+be+the+first+to+build+a+100+storey+castle.+Crush+or+be+crushed%21%22+%2F%3E

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    908
    Thanks
    0
    Thanked 120 Times in 119 Posts
    you can use decodeURI() to convert the %xx's to normal characters.
    Code:
    Text = decodeURI(encodedText);

  • #3
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Lerura View Post
    you can use decodeURI() to convert the %xx's to normal characters.
    Code:
    Text = decodeURI(encodedText);
    thanks for reply can you give me the complete code so that I could make a .html file out of it so I could use it for future too. Right now It looks like php to me or maybe java and I don't have good knowledge of both.

  • #4
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    908
    Thanks
    0
    Thanked 120 Times in 119 Posts
    I have too little knowledge of server-side languages, to help you with the task of creating a file from the output.

    But you should be able to send string, decoded or not, to the server-side language.

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts

  • #6
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Apostropartheid View Post
    Thanks alot this is what I was looking for ^^


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •