473,775 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preparing a html string for rss

Anyone have/know of a function that will clean a html string of all
tags and invalid characters, ready for an RSS feed in iso-8859-1
encoding?

I'm using strip_tags at present but it's not catching things like euro
signs which is stopping my feed from validating.

Thanks,
Ciarán
Dec 2 '07 #1
1 1434
MW
Ciaran wrote:
Anyone have/know of a function that will clean a html string of all
tags and invalid characters, ready for an RSS feed in iso-8859-1
encoding?

I'm using strip_tags at present but it's not catching things like euro
signs which is stopping my feed from validating.

Thanks,
Ciarán
Try mb_convert_enco de to convert to US-ASCII
http://us2.php.net/manual/en/functio...t-encoding.php
Dec 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2194
by: Casper B | last post by:
"Program to Interfaces, not Implementations" we've all heard, however I now identified a scenario where this idiom can not be used (I think) and is searching for another approach. I have a method exposed as a webservice (JAX-RPC) which specifies that the pass/return types must adhere to primitive types, beans and/or arrys of these. My application is supplying an argument in the form of an ArchiveItem instance when calling the...
10
1921
by: dterrors | last post by:
I figure before I go and write my summary of why you should go back to tables and only use CSS for fonts and colors and stuff, I ought to make sure I've got my facts right. So, please tell me how I can get this: <div style="border:1px solid #000;width:100% "> <table style="background:#CABE9E; margin:10px 10px 10px 10px; border-bottom:4px solid #000; border-left:4px solid #000; border-right:4px solid #000;
4
1984
by: David | last post by:
A friend of mine has to export some data from his current access database into a CSV file to be imported into an accounting package. There are a few things that need to be done most of which I am quie capable of doing. For expample writing the query to grab all the relevant data is fine. Building the macro to export the data via transfertext is also fine. The problem I have lies in his product description field. In his database it is...
0
1158
by: matungafriend | last post by:
Hi I am fresher what kind of questions are asked during .NET Interviews how should i prepare myself.I have just completed my course from my NIIT and looking forward for real job. I am doing the following stuff 1) Preparing myself for certifications. 2) preparing interview questions from www.techinterviews.com , http://www.geocities.com/dotnetinterviews/ and freshers guide for .NET
20
5650
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just client-side HTML, CSS, etc. What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
1
1368
by: culley harrelson | last post by:
Is there any benefit to preparing a call to a pre-defined sql function or is the sql function already optimized? create temp table foo(col1 integer); insert into foo(col1) values(1); insert into foo(col1) values(2); insert into foo(col1) values(3); insert into foo(col1) values(4); create or replace function testfunc(integer) returns foo as 'select * from foo where col1 = $1;' language sql;
0
1068
by: aprajitha | last post by:
Hi, What is the approach to be followed for preparing a fresh new installation kit for a server using the Microsoft Installer?
2
2018
by: Bryan.Fodness | last post by:
I would like to have my data in a format so that I can create a contour plot. My data is in a file with a format, where there may be multiple fields field = 1 1a 0 2a 0 3a 5
0
1257
by: alipalengara | last post by:
Hi, I have crated a setup project with prerequisites (frmaework 3.5 and SQL express 2005) and i given some custom action for restoring the database. The Problem is that after installing the application, it will pop up a message for "Preparing to Instal.." at everytime when loading application. Can anyone help me out to avoid this popup? Thanks in advance... Ali PP
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10048
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4017
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.