plaintext

Converting HTML to plain text in PHP for e-mail

I use TinyMCE to allow minimal formatting of text within my site. From the HTML that's produced, I'd like to convert it to plain text for e-mail. I've been using a class called html2text, but it's really lacking in UTF-8 support, among other things. I do, however, like that it maps certain HTML tags to plain text formatting — like puttin...

Generating textual representation of directory contents

I'm looking for a script to generate the graphical-ish textual representations of directory structures that you see around. Something that I can run like this: james@computer:/.../basedir$ listdir . basedir |-firstsubdir | |-file | `-subsubdir | |-file1 | |-file2 | |-file3 | `-file4 `-secondsubdir james@computer:/.../basedir$ ...

Parsing anchor tags using asp.net

When parsing a bunch of html in plain text format, is regex the best way to extract and examine all anchor tags or is there anything built into the .net lib? ...

Xcode iPhone binaries

I got curious what my binary iphone files contained, so I opened some in a text editor. To my surprise, there are a lot of methods and stuff being mentioned, even in the binaries that are code signed (I thought they got encrypted?). Not that it is a problem, I'm just curios. Why are there so many things in plain text? ...

Plain and Rich text editor options in TinyMce editor

Hi, I am using tinymce editor to give good look of textarea where user write some comments.I want to give him two options one is plain text and the other is rich text editor option.When user click on plain text option all rich text option removed and when user click on rich text it will get all options of formatting text. I want to do t...

Language for plain text documentation

Hi, I think about storing project documentation in plain text format. The primary reasons/requirements are: easy for source controls systems to manage and track versions; simple to edit (any text editor); REDUNDANT - no additional software required for preparing the document (not generating the formatted result); can be formatted to H...

Visualise Workflow Diagram from plain text

Assuming there is a plain text with description of the workflow (Just plain English in some predefined format). Are there any tools (better online) to visualize the flow based on a plain text? What for: to store the description of the workflow in a source control system and be able to quickly remember/understand that. ...

How can I extract URLs from plain text with Perl?

I need the Perl regex to parse plain text input and convert all links to valid HTML HREF links. I've tried 10 different versions I found on the web but none of them seen to work correctly. I also tested other solutions posted on StackOverflow, none of which seem to work. The correct solution should be able to find any URL in the plain te...

How to stop jQuery from returning tabs and spaces from formated code on .html() .val() .text() etc.

I've got an html table: <table><tr> <td>M1</td> <td>M2</td> <td>M3</td> <td>M4</td> </tr></table> and a simple jQ script: $('td').click(function(){ alert( $(this).html() ); }); That works just fine.... but in the real world, I've got several hundred table cells and the code is formatted improperly in places because of several p...

My multipart email script sends HTML messages just fine, but the plain text alternative doesn't not work, what may be wrong?

I have a script set up to send out multipart emails; plain text and html messages. The HTML messages work just fine, but when I used an email client that only does plain text the plaint text message does not render and I get the following: -- This message was generated automatically by Me http://www.somewebsite.com/ $html_msg...

Including a plain text file with XSLT 1.0

How can I include the content of a plain text file in a result document from within an XSLT 1.0 stylesheet? I.e., just like document(), but without parsing it: <xsl:value-of select="magic-method-to-include-plaintext(@xlink_href)" /> I am almost sure, that this doesn't work without extension, because: there is a special XPath functio...

C#, Display plain text in a form

I ve made this simple drawing to explain my needs: Plain Text in C# I can only find rather "complex" functions, like RTF Text box etc. I couldn't figure out how to display "plain text" in a Form1.cs (I do not talk about HTML to WinForm) (Search did not return any useful results) ...

XSLT 1 Plain Text Spacing

Using Perl's XML::LibXSLT necessitates that I use XSLT 1.0, which means that I am stuck without XSLT 2.0 features. Is there a way that I can still pad text cleanly in a plain-text output from my processing? What I want is: <values> <headers> <header>Header 1</header> <header>Header 2</header> </headers> <va...

Is there a difference between plain text emails, and multipart emails with only plain text?

I'm using Rails to send emails and I just want to send a plain text email (there is no corresponding HTML part). I've noticed that if I just have one file named email.text.plain.erb it actually generates a multipart email with one part (the plain text part) like this: Content-Type: multipart/alternative; boundary=mimepart_4c04a2d34c4bb...

How to get a line break in a plain text email RoR?

I'm sending a plain text email and was wondering how I add a line break to this. It's showing up on on the same line. From: <%= @name %> <%= @text %> Thanks ...

Plain text file in the compressed application bundle viewable by iPhone users?

There are some plain text files in my application bundle which has already been uploaded to the AppStore. These text files are read and displayed by the application. What I would like to know is, could people who downloaded the application from AppStore actually extract these text files and view them else where? Is there any encryptio...

How should passwords be securely stored for web hosting?

Possible Duplicate: Encrypting/Hashing plain text passwords in database Recently, I discovered that major web hosting companies store their users' passwords in plaintext and even ask for the last 4 digits of the user' password when trying to verify their identity. This seems vitally wrong and full of security problems. I belie...

Drupal - How to change input format for comments?

This issue irritates me much. Somehow after installing wysiwig editor my comment body form turned into rich.. bla bla area. I do not want this but I can not find the place where to turn back comment input format to the plain text (or filtered format). I know how to change filter options for different content types but turning back commen...

Formatting a table in a plain text email in C#

I'm trying to send data in a tabular format via email and I was just told that some of our clients can't receive HTML formatted emails, which is what I was using. I tried to manage this using tabs, but the length of the strings varied too much to make this reasonable. Is there a way to easily format tabular data in a plain text email? ...

html link in php mail

I have the following code to send an email to the users. $mes_body.="Click to Login. www.website.com/index.php\n\n"; $mes_body.= "<a href='www.website.com/index.php'>Click to Login.</a>\n\n"; Right now i am seeing the email as : Click to Login. www.website.com/index.php <a href='www.website.com/index.php'>Click to Login.</a> Wha...