How to take away html codes

Hi Everyone,
i am now currently doing a project and my part is to do fourm, i just want to ask abt this problem:
If i post a new topic and i enter in html codes that will be very dangerous. So is there anyway to remove the htm codes when i post the new topic? Pls reply asap.
Thank you.

To keep the html as a part of the post:
Parse the posted string and replace all < with &lt;, > with &gt; and & with &amp;
To complete remove it from the post:
This part is a litlle more tricky only using string parsing. But the basic algorithm is to find the first tag and last tag and remove the tag including the content (or keep the content?).

Similar Messages

  • How do i add html code to my muse site? I want pintrest to verify my site.

    how do i add html code to my muse site? I want pintrest to verify my site.

    Hi,
    There are multiple ways in which you can add the HTML code to your site. Few methods are :-
    1) Copy your HTML code, In Muse -> Select Objects-> Insert HTML . Paste your HTML code on the page.  Please reer to this screenshot :- http://prntscr.com/52vprn
    2) If you want to add the HTML code in the Head section of your page, Go to Page Properties-> Metadata-> HTML for <Head> .    Please refer to this screenshot :- http://prntscr.com/52vpx5
    Hope this helps
    Regards,
    Rohit Nair

  • How can I write HTML code in this forums

    Sorry but I didn't know where to post this thread.....
    How can I write HTML code in this forums?

    Hello,
    Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
    In case of the &lt;a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
    When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
    Hope this helps,
    Arie.

  • How to clean the html code multiple pages simultaneously with Dreamweaver or other soft ?

    hello,
    How to clean the html code multiple pages simultaneously with Dreamweaver or other soft ? I have hundreds of pages to clean
    Thanks !

    I would start afresh. I would also use Dreamweaver's template system to make thing a lot easier. Have a look at the following, copy and paste into a new document and view in your favourite browser.
    <!doctype html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css" />
    <script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
    <script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
    <style>
    .hline {
        background: url(http://yannick.michelat.free.fr/barre.gif);
        height: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    </style>
    </head>
    <body>
    <div class="container">
        <div class="row">
            <div class="col-xs-7">
                <img alt="" class="img-responsive pull-right" style="margin-top:20px;" src="http://yannick.michelat.free.fr/Calanques.gif" />
            </div>
            <div class="col-xs-5">
                <img alt="" class="img-responsive center-block" style="margin-top: 40px;" src="http://yannick.michelat.free.fr/grandportfolio.gif" />
            </div>
        </div>
        <div class="row hline"></div>
        <div class="row">
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-01.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-02.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-03.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-04.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-05.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-06.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-07.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-08.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-09.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-10.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-11.jpg" alt="" class="img-responsive"></a></div>
            <div class="col-xs-6 col-sm-4 col-md-2"> <a href="#" class="thumbnail"> <img src="http://yannick.michelat.free.fr/vign__CalanquesConseil-12.jpg" alt="" class="img-responsive"></a></div>
        </div>
        <div class="row hline"></div>
    </div>
    </body>
    </html>

  • How to get embedded HTML code of slideshow created with photoshop elements 8?????

    How do I get the EMBEDDED HTML CODE after creating a SLIDE SHOW using Photoshop Elements 8?????

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How to read the HTML code from a webpage

    Hi, I want to be able to read the HTML code of a web page
    In order to extract some info from some pages.
    How can I do that?
    is it using cl_http_client ? I played with that class a bit, but wih no sucess to what I need...

    Hi RagnaRock,
    You can use the following form, hope it helps you.
    Regards,
    Ozcan.
    form get_data_from_url using iv_url type clike changing iv_data type string.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
      clear  iv_data.
      CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
           EXPORTING
            URL                = IV_URL
    *          PROXY_HOST         = '10.1.1.1'
    *          PROXY_SERVICE      = '1234'
    *       SSL_ID             =
           IMPORTING
             CLIENT             = HTTP_CLIENT
           EXCEPTIONS
             ARGUMENT_NOT_FOUND = 1
             PLUGIN_NOT_ACTIVE  = 2
             INTERNAL_ERROR     = 3
             OTHERS             = 4.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->RECEIVE
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2
          HTTP_PROCESSING_FAILED     = 3.
      CHECK SY-SUBRC = 0.
      iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    endform.                    "get_data_from_url
    Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM

  • How to import my html code in to portal?

    hi all,
    I have got designed all my htmls pages from a web designer now how can i put all this html code in to portal package without a long by line cut and paste from html in to pl/sql??please suggest as i have around 60 odd htmls pages and badly need a direct way to import all these to pl/sql pakage into portal
    thanx in advance
    anurag

    I have tried the above mentioned solutions but it only adds a link to the html page and the full page.The tutorial says add a perspective and add a file item to it(ur html page) and then publish that perpective as portlet.So i did it that way but first i couldn't get the genereated code for the portlet and then felt even if i would have get the page there would have been just a link to html page and not the page it self??please suggest a solution for this as I have around 60 html pages with vey complex designs so line by line code cut/paste gonna be avery time consuming/complex option.
    null

  • How this piece of html code is encoded from commandLink?Help!

    Hi, this is the jsf code:
    <h:panelGrid columns="1">
                         <h:dataTable value="#{temp.nameFile}" var="myL"
                             rendered="#{temp.show1}">
                             <h:column>
                                  <h:commandLink actionListener="#{temp.create}" value="#{myL.name}"
                                       immediate="true">
                                       <f:param name="name" value="#{myL.name}" />
                                       <f:param name="path" value="#{myL.path}" />
                                  </h:commandLink>
                             </h:column>
                        </h:dataTable>
                   </h:panelGrid>And this is the html code it generates:
    <table>
         <tbody>
              <tr>
                   <td>
                   <table>
                        <tbody>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:0:_id4';
                                                             document.forms['_id0']['name'].value='ISO-3166';
                                                             document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/iso3166.xml';
                                                             document.forms['_id0'].submit(); return false;">ISO-3166</a></td>
                             </tr>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:1:_id4';
                                                              document.forms['_id0']['name'].value='NAICS';
                                                              document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/naics.xml';
                                                              document.forms['_id0'].submit(); return false;">NAICS</a></td>
                             </tr>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:2:_id4';
                                                             document.forms['_id0']['name'].value='UNSPSC';
                                                             document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/unspsc.xml';
                                                             document.forms['_id0'].submit(); return false;">UNSPSC</a></td>
                             </tr>
                        </tbody>
                   </table>
                   </td>
              </tr>
         </tbody>
    </table>there is a line of html code like this:
    document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:1:_id4';I know that "_id0" is the form ID, and "_id0:_idcl" is the clientID,but what is the value part "_id0:_id2:1:_id4" and what is the meaning of each part?I am writing my custom renderer, so i need to know how it is encoded,please help:)
    Best Regards:)
    Robin

    _id0 - id of the form
    _id2 - id of the datatable
    1 - row index
    _id4 - id of the commandlink                                                                                                                                                                                       

  • How to display some html code in the front panel

    Hello.
    I am trying to properly display a few lines of html code in some kind of indicator on my front panel.
    I was trying to use an ActiveX container with MS IE in it, but all the methods I find are to make it navigate to a given URL. I did not find any method or property by which I could give it some html code and it would display it.
    Anybody know of a way to do this? It does not have to be using ActiveX or MS IE.
    Thanks in advance,
    Alejandro

    Here is a simple way using the activeX that I have embedded in some programs in the past. You will have to call the file path to show the file.
    Hope this helps some.
    -Dave
    Attachments:
    HTML Window.vi ‏36 KB

  • How to shorten the HTML code name when it's a hyperlink?

    Hi there,
    I'm trying to make all of my hyperlink html codes short and to the point. If you go to one of my site pages http://tinyurl.com/pj5rqz then roll your curser over the Download PDF and then roll it over the pictures them selves. You'll see that there is redundancy in the names and their all different. I'd like the code to simply read Best of Flowers 2. Is that possible? What do I need to do?
    Thanks.

    Hi RagnaRock,
    You can use the following form, hope it helps you.
    Regards,
    Ozcan.
    form get_data_from_url using iv_url type clike changing iv_data type string.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
      clear  iv_data.
      CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
           EXPORTING
            URL                = IV_URL
    *          PROXY_HOST         = '10.1.1.1'
    *          PROXY_SERVICE      = '1234'
    *       SSL_ID             =
           IMPORTING
             CLIENT             = HTTP_CLIENT
           EXCEPTIONS
             ARGUMENT_NOT_FOUND = 1
             PLUGIN_NOT_ACTIVE  = 2
             INTERNAL_ERROR     = 3
             OTHERS             = 4.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->RECEIVE
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2
          HTTP_PROCESSING_FAILED     = 3.
      CHECK SY-SUBRC = 0.
      iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    endform.                    "get_data_from_url
    Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM

  • How can I edit HTML code that was previously inserted?

    Inserting HTML code is easy enough - Object -> Insert HTML...
    But editing the code does not seem possible. It seems that it's necessary to delete the HTML object and reinsert it to make a change. What am I missing?

    Right click. I'm on my phone, but an option like "Edit HTML..." should be among the choices when an HTML embed object is selected.

  • How can I view html codes ?

    I have some text and images composed in a yahoo group.  I need to cut and paste it into an html box on MYSPACE.  I've already tried checking Yahoo's "View html Source" box.  Nothing appears.  I also tried clicking on my imac "View Source" in the tool bar, pasted the code into the html box but only got code, not text and images. 
    Is this something that can't be done unless you are an html code wiz?

    I don't use Myspace, but if you're given an HTML box to fill in, it will almost certainly show as code until you submit it, and then, if the code is correct, it should display your layout correctly as text and images on the new page.
    Note that images may not transfer correctly unless their source tags contain absolute references - eg "http://yahoo.com/images/myimage1.jpg" should be fine, but "../images/image1.jpg" will not work.
    Matt

  • How to take away the html file name from the view in address bar

    Hi!
    Wen I visit the pages of a site made with muse I see this in the browser address field
    cinomiller.com/index.html
    cinomiller.com/cv.html
    cinomiller.com/contact.html
    (and so forth)
    I would rather just have
    cinomiller.com
    cinomiller.com/cv
    cinomiller.com/contact
    (and so on)
    How is it done?
    Thanks!

    Hello Alejandro,
    Unfortunately there is no option in Muse to remove the .html extension from the pages. However, if you site is hosted on Business Catalyst, you have the option to edit the URL of the page and remove the .html from it.
    But, if your site is hosted somewhere other than Business Catalyst, you would need to contact your hosting provider to help you out to remove the extension from the URL of the pages.
    Hope this information helps.
    Regards,
    Rajan

  • Anyone know how java can get html code

    I have this great idea for a program but I need to know how java can get some source code off a web page (HTML) so i can then get certain information from it.
    Then with that certain information on my side can I then like post data through a from like a cgi/php script through a post variable?
    Have any of you heard of something like this?

    you can read the html easy enough, look in the docs for, of all things, objects that have html in their name.
    if you are going to post back then you need an interface to post to--like a servlet--but in any case it has to be supported by the site you want to post back.

  • How to hide JSP & HTML code

    Hi,
    I have develop a web-site in JSP I want to hide the code like all the HTML and JSP CONTENTS . Like some sort of binay format.
    Is there any tool available like source safe or any thing like that, I can safe my code other than giving my html, jsp code to my client.
    Thanks
    Jawad

    Yep, the JSP generates a Servlet which in turn generates HTML which is sent to the browser resulting in the displayed page.
    There is no way for a person viewing your jsp page to get at the jsp code, only the results of it.
    - meMyselfAndI
    Or do you mean a system which converts the jsp into an executable file like in a CGI program - this is more likely since if Ur building a JSP system for a client you probably know about how it works - Not that I know of. Far as I know U just have to live with them seeing what you wrote.
    Anybody else know of any of these?

Maybe you are looking for

  • Install windows 7 without bootcamp

    Hi everyone I discovered a way to install windows 7 without boot camp, i'm not sure if its also applicable with original windows 7 cd, but here goes, I wanted to install windows 7 completely in my optical bay hdd, i couldn't because you cannot boot u

  • VI Server Config in LV 8.0

    Greetings All, I've recently installed LV 8.0, and have been starting the process of porting a distributed application (with an RT component) into a LV 8.0 project. So far, it hasn't been too promising. One of the main stumbling blocks appears to be 

  • Filename or Document name restrictions

    I am working with a customer that uses strange names for their files and documents. They name them like: !(%$#@^&P_6* (we call them cussing file names) Anyway, I found release notes for 9.0.3 that says many of these characters can not be used. Howeve

  • Crystal Enterprise 8.5 - Processor Restrictions?

    Post Author: qstone CA Forum: Upgrading and Licensing Hi, I currently have CR8.5 Developer installed on a single processor server that has had a good run, but needs replacing. We have a new dual processor server that I'm trying to move our applicatio

  • Spreading Capacity Problem

    Hello All, I am using a Workcenter in an activity. The Work-center has capacity of 8 hrs/per day. I assign 40 hrs of work to this activity and with the 'basic dates' using start date & finish date use 2 weeks ( i.e, 10 working days ) to finish the wo