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

  • Home
  • SEARCH
  • 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 356277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:05:47+00:00 2026-05-12T12:05:47+00:00

im working with a cms made a few years ago in asp/vbscript (old asp)

  • 0

im working with a cms made a few years ago in asp/vbscript (old asp) and until we release out dot net cms (should be soon) we are stuck with this one but at the moment im trying to make it a bit more w3c compliant … currently our cms is IE only … in the page editor

you can switch back and forth from Preview state and html mode and the editor use innerHTML to swap mode but that innerhtml makes all the tags in cap and makes all <LI>...</LI> tags like that <LI>...

no closing tags since it was optional … i can grab all html tags and attribute keys using regex and swap them to lower case but i was wondering if anyone know an easier way to do so… i tried adding strict mode doctype unfortunately since the code of the editor is really old the whole editor jsut fall apart …

hopefully we are gonna release our new cms soon but its gonna be a while until we transfer all our sites to the new cms so until then im trying to improve our old code

is there any equivalent to innerHtml that would make the code more w3c Compliant AKA keep the closing tag to my <li></li> so i dont start parsing my ccode using regex and replace
?
ty

  • 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-05-12T12:05:48+00:00Added an answer on May 12, 2026 at 12:05 pm

    If I understand you right, the answer is ‘don’t do it’ unless you’re going to make any changes to the code in the ‘Preview’ mode.

    If that Preview is just plain preview (no WYSIWYG), you should do it like that:

    When switching to ‘Preview’ mode, hide the editor (….style.display='hidden' or something like that) leaving the code unmodified inside, and copy it to innerHTML of the preview element.

    When switching back, you just discard the code from innerHTML and display editor with old contents again.

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

Sidebar

Ask A Question

Stats

  • Questions 198k
  • Answers 198k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This should do it: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){… May 12, 2026 at 7:39 pm
  • Editorial Team
    Editorial Team added an answer I'm assuming you want to be able to call dynamically… May 12, 2026 at 7:39 pm
  • Editorial Team
    Editorial Team added an answer Yes you can search within words. You need to split… May 12, 2026 at 7:39 pm

Related Questions

I basically am working with an oldschool php cms based site in Russian, one
I'm working with a CMS, Joomla, and there's a core class which renders a
I'm working with with asp.net and writing a few classes (controls for the CMS)
I'm working with an ASP.NET MVC site which will use a CMS controller for

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.