Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
113 views

I'm trying to compare HTML fragments that have been processed by two different systems, to check that the results are equivalent, in particular regarding character escapes. I need a version of the ...
Gouvernathor's user avatar
0 votes
0 answers
69 views

We are working with a hashed identifier column (vmid) in a Pandas DataFrame, which has been sanitized to remove special characters due to CSV storage constraints. The sanitization function we used ...
Mario's user avatar
  • 2,084
0 votes
1 answer
47 views

I am sending a requestDTO as follows: { "transportType": 0, "registerMode": 4, "siteName": "string", "destinationAddress": "string", ...
anoop kothapally's user avatar
0 votes
0 answers
78 views

I am trying to parse an html input using jsoup (v1.18.1), extract elements, extract each attribute value and replace as follows: > with &gt < with &lt The method I'm feeding this code ...
Pallavi's user avatar
1 vote
1 answer
66 views

what would I do if i just randomly wanted to write &lt or &gt in HTML but I don't want to make it appear as a < or >. I understand I can use Javascript but I'm just wondering if there's ...
squago's user avatar
  • 31
0 votes
1 answer
63 views

I need to adapt an old XSLT file that transforms an XML file into HTML/JS. It doesn't work anymore. Here is the original JS code generated in XSLT file : function processVisibility(item, visible) { ...
Pick's user avatar
  • 57
0 votes
0 answers
49 views

I have two issues with strings I'm trying to determine a solution for - one is related to formatting markers, and the other is related to escape characters for the "<" and ">"...
mbob98's user avatar
  • 71
1 vote
1 answer
50 views

function ReplaceHtmlCharacterCodes { param( [string] $pattern ) # Import the System.Web assembly to use the WebUtility class Add-Type -AssemblyName System.Web # Decode the ...
Patrick's user avatar
  • 11
0 votes
0 answers
44 views

In my project I am trying to create CSV report by converting a JSON to comma seperated values enclosed with double quotes. But while in the JSON I have # as a value in some places. So while ...
nanthinidevi's user avatar
-1 votes
2 answers
107 views

There is a Java, Spring, Tomcat webapp. One part is responsible for sending activation emails to the newly created users with generated activationUrls (consisting of unique tokens). The email is ...
DelphyM's user avatar
  • 378
1 vote
2 answers
565 views

I have a game telegram bot which uses first name - last name pairs to spell out a top chart of users in a chat by their score. Screenshot example below: So, every user has a link to them. The actual ...
winwin's user avatar
  • 2,124
0 votes
1 answer
1k views

I have a Svelte app REPL where I wish to convert strings to html characters. <h1>Test html codes</h1> {#each lines|| [] as line} <div id="comment-line"> {line} ...
Psionman's user avatar
  • 3,841
0 votes
1 answer
446 views

I have byte array with html and try to escape. I convert byte array to string and replace special characters. When I make replace, my html doesnt work properly. It looks like a string and no css. How ...
k.kbr's user avatar
  • 45
0 votes
2 answers
326 views

Java can escape html using e.g. Apache CommonsText StringEscapeUtils but it will use html entity names, not numbers. So > becomes &gt; Is there a library or class or some feasible custom ...
Mko's user avatar
  • 148
1 vote
1 answer
122 views

I receive text from source system with HTML special escape characters in middle of text. Now I need to translate it to the actual character in XSLT 2.0 I/p like <Data>Lenevo100 f&amp;uuml;r ...
HKmar's user avatar
  • 45
0 votes
0 answers
533 views

I have a HTML select field with options and some JS which builds a URL and adds it as the value of the options: <script> $( document ).ready(function() { url = ''; url += '?...
bigdaveygeorge's user avatar
0 votes
0 answers
169 views

I ned to write a string that could escape both these strings. str = "We couldn't help" str = "We couldn&#39;t help." I achieved that using CGI.escapeHTML(CGI.unescapeHTML(str))...
elrond2194's user avatar
1 vote
1 answer
173 views

I'm trying to build a CSS selector that specifically distinguishes between elements that have a background image given as data URI: <div style="background-image: url(&quot;data:image/svg+...
Madamadam's user avatar
  • 938
-3 votes
2 answers
127 views

I have a string, and I have to count all elements in this string. str = '\r\n\r\n\r\n \r\n \xa0\xa0\r\nIntroduction\r\n\r\n\r\nHello\r\n\r\nWorld\r\nProblems...\r\nHow to calculate numbers...\r\...
J.H's user avatar
  • 15
0 votes
1 answer
886 views

Im trying to PARSE this JSON and getting this error Expecting "EOF" got undefined error, not sure not sure what I am missing in line 14. example: { "plotOptions": { &...
Ben Rig's user avatar
  • 79
0 votes
1 answer
1k views

I have a string like A, with unicode escape characters. How can I replace those characters with empty spaces in SQL? A My Name is \u001AVinaykumar. I am \u001AFrom AndhraPradesh. I have completed my ...
vinay reddy's user avatar
-1 votes
1 answer
1k views

My target is to display special letters of message as regular text after using StringEscapeUtils.escapeHtml4. Text example: <html> <body> <p>éô</p> </body> </html> ...
Constantine Ch's user avatar
0 votes
0 answers
160 views

I'm using express-validator to sanitize and escape the inputs from body, the input is 2/1 I sanitize as follows: body("abbreviation") .notEmpty() .isLength({ min: 2, max: 11 }) ...
Amine Deflaoui's user avatar
0 votes
2 answers
892 views

I've got a case where I have a text that begins with characters like &nbsp; that I do not want to escape, but then the rest of the string I do want to escape. In Vue, given text = "&nbsp;&...
Chris's user avatar
  • 4,486
1 vote
1 answer
285 views

I am trying to replace all "\n" with a space in char strings in a column of data in R but not having much luck. (I also will need to get rid of all single backslashes with nothing but haven'...
ThreatworkAnalyst's user avatar
0 votes
1 answer
520 views

I have a scenario where I need to format a string into an array to display it in a different way to the user. So, when I get an escape character (for a new line) \n I need to add that as a separate ...
Thidasa Pankaja's user avatar
0 votes
1 answer
373 views

Convert escaped characters/ whitespaces to plain text I received data from another database and want to data as plain text. For now it is using \n, \v,\e, \t, etc as escaped characters. But I want to ...
Arun Kumar's user avatar
0 votes
2 answers
422 views

I am trying to send this query to my command line: docker exec cardano-node sh -c 'echo { "type": "PaymentExtendedSigningKeyShelley_ed25519_bip32", "description": ...
Barney Chambers's user avatar
1 vote
1 answer
2k views

I am having an issue with encoding and decoding HTML Entities on a textarea using ngModel. The Back-End needs and is sending the ><"&' as HTML Entities. This seems like it would be ...
RooksStrife's user avatar
  • 1,747
0 votes
1 answer
475 views

I read this and I did the below. $confirmation = htmlspecialchars( 'return confirm("' . esc_html__( 'Do you really want to delete?', 'tor-child' ) . '");' ); $output .= '<form method=&...
mewiben39's user avatar
  • 173
0 votes
2 answers
197 views

I have a html like this. <div id="video1" value="&lt;iframe src=&quot;https://www.move.com/99&quot;&gt;&lt;/iframe&gt;" class="movie"></...
saya-ma's user avatar
  • 33
1 vote
1 answer
566 views

I want to escape custom tags except for HTML tags such as strong, bold, italic. Input: "Hello World! <notification>Name</notification><nat>Nat tag</nat> <strong>...
Rishabh Shah's user avatar
0 votes
2 answers
2k views

My program does not unescape the HTML special characters for quotes and I can't figure out why. It still displays the special characters in the Terminal. For example: 'In the comic book &quot;...
Sparky's user avatar
  • 913
1 vote
1 answer
1k views

Is this the right way to use escape characters in alt attributes for alt text of an img element? I have the below code: <h3>Option 1</h3> <img src="image.jpg" alt='Version of "...
qqq's user avatar
  • 1,036
2 votes
2 answers
1k views

So, this is driving me nuts. How can I convert encoded characters like %apos to plaintext? Using Python 3.9. What I Tried: string = 'The guy blasts the other guy on &apos;Russia&apos;s ...
SeaDude's user avatar
  • 4,486
0 votes
1 answer
1k views

This question is for an app using an Angular UI (v8.2.14) calling Spring/Java services. I'm trying to figure out how to be secure from XSS vulnerabilities in the most efficient way, but there seem to ...
John C's user avatar
  • 11
0 votes
2 answers
751 views

format_html_join( '<br>', '<br><a href="{}">{}</a>', ( (reverse("admin:research_webproductpage_change", args=[wpp.id]), wpp.title[:30]) ...
Ozzy Black's user avatar
0 votes
0 answers
224 views

I am using the below script to convert "." into "।" which is the Hindi stop symbol. I am using this code in a blogger post, The script code converts this dot (.) symbol into HTML ...
Mohammad Suhail's user avatar
-2 votes
1 answer
1k views

I can only paste the text as it is (I can add some function around the text however before echoing it) between the echo ''; apostrophes - how can I insert the text in a way that it does not break the ...
Allar's user avatar
  • 85
0 votes
0 answers
31 views

I created a web chat using socket.io, it is end-to-end encrypted chat. I am encrypting data using AES-GCM. The data is encrypted on the client side and decrypted on the other client side. And so I ...
Sergei Hronov's user avatar
2 votes
1 answer
752 views

this is my first question on stackoverflow so plz let me know how I can improve readability for others. Am trying to use regex on the string I obtained from getPlainBody() in GmailMessage Class but ...
riceveggi's user avatar
0 votes
1 answer
405 views

I am using spring-boot + freemarker (standard initialiser project ). I have a line in my .ftlh file <a href="<@spring.url '/${customer.email}' />" class="zenith-link&...
zealvault's user avatar
  • 160
0 votes
1 answer
60 views

Using Material-UI icons like <AddOutlinedIcon /> as shown below, how can I actually make the icon appear in my nav menu as atm it displays the tags/word <AddOutlinedIcon /> before my menu ...
ArthurJ's user avatar
  • 873
0 votes
1 answer
396 views

Situation I am writing a Ruby On Rails application in German and it is able to download PDF files. User entered strings should be shown in the PDF. Like e.g. the cities: "Köln" & "...
Julian's user avatar
  • 27
1 vote
2 answers
1k views

Is there a way to format HTML attribute values so they span across multiple lines? Essentially I'm asking is there a way to escape a return inside of a regular typed HTML attribute value. For example ...
Lynel Hudson's user avatar
  • 2,453
1 vote
1 answer
304 views

I am parsing an html string with Jsoup in order to extract just the text, and want to get the exact text, but when I parse strings that include escaped chars Jsoup unescapes them. For example - if I ...
Adi Gutner's user avatar
1 vote
0 answers
300 views

i want to replace all < in a string with &lt and insert it into MongoDB. But when i insert it, MongoDB automatically replace &lt with <. How can i do to prevent it? This is the code for ...
BlackdestinyXX's user avatar
-1 votes
1 answer
304 views

Does anyone know how to provide a single backslash as the replacement value in Ruby's gsub method? I thought using double backslashes for the replacement value would result in a single backslash but ...
ddb's user avatar
  • 48
1 vote
1 answer
3k views

I am getting some data out of the cmd terminal through git log and transporting that data to a JSON file. I parsed out the required data out of that JSON file and intended to put that data into a new ...
Ashish's user avatar
  • 77
1 vote
3 answers
4k views

I have a simple PrimaryButton.svelte component that contains "HTML" only (no script or style tags) and looks like this: <button class="btn-primary btn accent--br">Primary ...
Dmitry Boychev's user avatar

1
2 3 4 5
8