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 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

Related Questions

I'm working on a PHP CMS like project and I'm trying to find out
I'm currently working on a home-made full front-office 100% javascript CMS of ours, and
I'm working on a custom CMS, made changes to the DB schema and presentation
I am working on a CMS template and try to find out if this
I'm working on a CMS and I'm trying to figure out the common practice
I am working on an ASP.NET 4.0 web forms project that uses page routing
I'm working with a CMS, Joomla, and there's a core class which renders a
Got myself in a bit of a pickle here ... working on a CMS
I'm working on a module for a CMS. This module is distributed as a
I'm working on a custom CMS for my own use and was thinking about

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.