replace tags sin html page



Hi,

I want to replace tags in html pages. I want to replace the tags with
some string before the page show. I am thinking of doing it in
DocumentCompleteIe(LPDISPATCH pDisp, VARIANT* URL).
Can someone tell me how to do this? I want to replace all the strings
between <localize>I </localize>. Is there a way to retrieve list of
strings to be replaced? Thanks.


Here is a sample html page

<jsp:directive.include file="/includes/taglib_stick.jsp" />
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta name="GENERATOR" content="Microsoft Visual Studio 8.0" />
<title></title>
<style>
body {
margin: 0px;
background: #FFF;
}
#topBarStick {
position: relative;
background-image: url("images/topBgsidebar.jpg");
width: 556px;
height: 34px;
font-family: arial;
font-size: 12px;
color: #000;
font-weight: bold;
padding-top: 8px;
padding-left: 5px;
}
#bottomBarStick {
position: absolute;
background-image: url("images/bottomBgsidebar.jpg");
bottom: 0px;
left: 0px;
width: 556px;
height: 15px;
font-family: arial;
font-size: 12px;
color: #fff;
font-weight: bold;
padding-top: 2px;
padding-left: 5px;
}
#contentArea {
padding: 5px;
font-family: arial;
font-size: 12px;
color: #000;
}
</style>

<script language="JavaScript">
// block navaigation to the previous page by key BACKSPACE
function blockBackNav() {
// keycode for BACK function IS 8
if (window.event && window.event.keyCode == 8) {
window.event.cancelBubble = true;
window.event.returnValue = false;
}
}
</script>
</head>
<body onKeyDown="blockBackNav()">
<div id="topBarStick"><localize>IDS_WELCOME_BAR</localize></div>
<div id="contentArea">
<localize>IDS_WELCOM</localize>
</div>
<div id="bottomBarStick"><localize>IDS_BOTTOMBAR</localize></div>
</body>
</html>
.



Relevant Pages

  • Re: Get text between A and B?
    ... > I want to read out several strings from an HTML file, ... > (also, things other than tags). ... Please use comp.lang.php for PHP related questions, ...
    (comp.lang.php)
  • Get text between A and B?
    ... I want to read out several strings from an HTML file, ... (also, things other than tags). ... I suppose some regex ...
    (comp.lang.php)
  • Re: save control characters in a session object
    ... > strings. ... One way to get around the newline problem would be to, ... > This will create the newlines for you in HTML. ... > tags. ...
    (comp.lang.java.programmer)
  • Re: efficiency of JList setElementAt()
    ... If you modify your program to produce strings about 3 times as long, make the strings HTML with a font color tag, and increase the list size to about 130, I think you'll get the kind of results I cited in my first post. ... The Swing cell renderer design is based on assumptions that construction is expensive and updating values is cheap. ... So let's cache. ...
    (comp.lang.java.gui)
  • Re: Best way to dump HTML strings to a page in ASP.Net?
    ... of HTML as strings into a string builder. ... HTML as text into a string builder. ... longer work, this only happens with a high number of strings being ...
    (microsoft.public.dotnet.framework.aspnet)