html-encode Questions

2

Solved

We're having conflict with coworkers on whether we should htmlencode user input and then save it to db ( vs saving it straight forward as it is) I also found various answers which says that DB sho...
Pastorale asked 10/3, 2014 at 10:0

7

Solved

The URL link below will open a new Google mail window. The problem I have is that Google replaces all the plus (+) signs in the email body with blank space. It looks like it only happens with the +...
Blurb asked 27/3, 2011 at 15:27

48

Solved

Every time a user posts something containing < or > in a page in my web application, I get this exception thrown. I don't want to go into the discussion about the smartness of throwing an ex...
Occam asked 17/9, 2008 at 10:58

5

Solved

Given the following URL (working, try it!) https://select-test.wp3.rbsworldpay.com/wcc/purchase?instId=151711&cartId=28524&currency=GBP&amount=1401.49&testMode=100&name=Tom%2...
Prelect asked 6/10, 2010 at 10:55

18

Solved

Apparently, this is harder to find than I thought it would be. And it even is so simple... Is there a function equivalent to PHP's htmlspecialchars built into JavaScript? I know it's fairly easy to...
Offcenter asked 24/11, 2009 at 1:59

11

Solved

I have a page that is part of a backend CRM admin panel. On that page the HTML output comes from some PHP functions that I can't access. And that HTML automatically changes < and > into HTML ...
Sufflate asked 22/7, 2011 at 0:50

5

Solved

Are they the same as XML, perhaps plus the space one ( )? I've found some huge lists of HTML escape characters but I don't think they must be escaped. I want to know what needs to be esca...
Changchangaris asked 11/9, 2011 at 23:24

16

Solved

I am creating a RSS feed file for my application in which I want to remove HTML tags, which is done by strip_tags. But strip_tags is not removing HTML special code chars:   &am...
Longitudinal asked 18/3, 2009 at 10:9

2

Solved

I have <label class='ash'>Comment Removed</label> in the database. When I show this on the grid. I get this on the page: <label class='ash'>Removed</label>...
Preceptor asked 13/5, 2011 at 22:38

10

Solved

How do I write the CC logo in HTML, is there something like © (which gives ©)? (CC stands for Creative Commons).
Iphigenia asked 11/11, 2008 at 21:16

2

Solved

I need to convert the Emojis (e.g. 😀) in strings to their respective HTML code entities (e.g. 😀) on a PHP 5.3 site. I need to do this so that user input gets properly stored in a lega...
Roomer asked 31/10, 2017 at 15:43

6

Solved

I store encoded HTML in the database. The only way i could display it correctly is : <div class='content'> @MvcHtmlString.Create(HttpUtility.HtmlDecode(Model.Content)); </div> It'...
Lipo asked 17/2, 2011 at 13:2

4

Solved

Question My question, explained below, is: How can R be used to read a string that includes HTML emoji codes like ��? I'd like to: (1) represent the emoji symbol (e.g., as ...
Luminescence asked 7/1, 2018 at 23:47

5

Solved

I have an ASP.NET Web Forms application. There is a page with TextBoxes and users enter search terms into these which are used to query the database. I know that I need to prevent JavaScript injec...
Labefaction asked 25/10, 2010 at 21:16

5

Solved

As ScottGu says in his blog post «by default content emitted using a @ block is automatically HTML encoded to better protect against XSS attack scenarios». My question is: how can you output a non-...
Mazurka asked 28/7, 2010 at 19:41

4

Solved

What is the easiest way to Html encode in PHP?
Agustin asked 9/12, 2009 at 13:13

2

I am using d3 to generate svg and end up with markup similar to the following: <text class="rule" text-anchor="middle">£10K</text> Compare to similar html that renders ...
Sampan asked 27/8, 2013 at 18:53

6

I want to convert & to &, " to " etc. Is there a function in c# that could do that without writing all the options manually?
Amperehour asked 13/10, 2009 at 19:19

6

Solved

I found similar questions and answers for Python and Javascript, but not for C# or any other WinRT compatible language. The reason I think I need it, is because I'm displaying text I get from web...
Calaboose asked 21/11, 2012 at 11:40

15

Solved

I have a string that is HTML encoded: '''<img class="size-medium wp-image-113"\ style="margin-left: 15px;" title="su1"\ src=&quo...
Fresher asked 8/11, 2008 at 20:44

3

Solved

Is there a way to configure Json.Net to automatically encode all strings like HtmlEncode(myString) when the model is serialized?
Ezechiel asked 22/5, 2017 at 14:49

5

Solved

I take user input into a text area, store it and eventually display it back to the user. In my View (Razor) I want to do something like this... @Message.Replace("\n", "</br>") This doesn'...
Misdirection asked 6/4, 2011 at 1:36

5

Solved

I am using tFPDF to generate a PDF. The php file is UTF-8 encoded. I want © for example, to be output in the pdf as the copyright symbol. I have tried iconv, html_entity_decode, htmlspeci...
Cradlesong asked 9/5, 2012 at 13:18

5

Solved

I am trying to generate emails with HTML content. this content has already gone through sanitation so I am not worried in that regard, however when I call: Razor.Parse(template, model); on the f...
Darla asked 12/3, 2012 at 2:49

2

Let's see an example: there is a German word: Fußgängerübergänge What I have: web.config file: ... <system.web> <globalization fileEncoding="utf-8" requestEncoding="utf-8" response...
Impute asked 25/10, 2014 at 13:17

© 2022 - 2024 — McMap. All rights reserved.