A new feature for 'Create A Recipe'

Wow even works in Edge (Not that i use it!).

Also it does work in Chrome on Windows

2 Likes

“The site says… false”?! :smiley: hehe odd.

3 Likes

Oh yeah haha! I didn’t notice that!

It works in my Chrome/Mac! :slight_smile:

1 Like

If you goto the main ELR page and click on a recipe. Then click the back button. Do you get the prompt then? i do!

Hmmm lemme test!

1 Like

Crap. I get that on Chrome.

1 Like

I get that in chrome on a mac as well

1 Like

I think I’ve fixed it!

4 Likes

sweet deal!

2 Likes

Yes you have indeed since i didn’t get that message just now when i tried it out. Good work bro :thumbsup:

2 Likes

Now if we can work on the issue where the ampersand, written as “&” causes all kinda goofiness when adding flavor names! :grimacing:

I’m next, Dad! :sob: Me! Me!! Me!!!

4 Likes

##PHP:
htmlspecialchars() & htmlentities()

Javascript:

function escapeHtml(text) {
  var map = {
    '&': '&',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#039;'
  };

  return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}

Thanks to Kip for the Javascript one:

5 Likes

yeah that’s …erm…exactly what I was gonna say…:thinking:

:nerd:

6 Likes

You damn programmers are too smart! Couldn’t survive life without you! I couldnt learn thag stuff…and if I could I dont think I’d want to lol

4 Likes

Haha nothing smart about PHP I can assure you! :slight_smile:

2 Likes

another feature/fix you could look @ might be really easy.

when u post links to other sites and it wants to encapsulate (previews etc)
it always shows the bottle and the ELR links / clickable etc but it will display a “please log in” page instead of how if i post link to a recipe on here it posts the recipe.


see what I did there.