Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8339661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:56:30+00:00 2026-06-09T04:56:30+00:00

I have a chat application that I am developing with SignalR. In the chat

  • 0

I have a chat application that I am developing with SignalR. In the chat the user sends a message, now I want to make it safe so users cant send javascript or anything like that. What are the things I should watch out for (i.e. stripping tags)? The chat does not go in a database, it litterly just relays the message from one user’s text area to the connected other user’s browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:56:31+00:00Added an answer on June 9, 2026 at 4:56 am

    Basically you want to guard against XSS – see here https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#Escaping_.28aka_Output_Encoding.29 under “Escaping (aka Output Encoding)”.

    Any characters entered at source should be HTML encoded when output to the target browser. This will convert sequences like <script> to HTML for display e.g.

    &lt;script&gt;
    

    Personally I wouldn’t bother stripping tags, I believe output sanitization is is the way to go as this is safe and will allow the most freedom for users to communicate without restriction (what happens if a user wants to send someone a snippet of code and your application is stripping all the HTML tags out?).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a simple chat application in flex 3 and i want to make
I am developing a chat application. And i want to have pop up window
I have developed an ASP.NET chat application. Now I want some integration with my
I have a Video Chat application that I want to disconnect from a call
I have a web application that requires Blog Forum Chat support etc Now my
I have a small application that I am building a Chat application into, so
I have a chat application(Socket Programming) , for that consider I have 2 separate
Hi all i am developing a chat application ... i have multiple chat windows
I want to build a simple web-interface application that can send/receive chat messages to/from
I am developing a chat application.Here for chat i have used ListView . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.