tags

Extract HTML tag data with sed

I wish to extract data between known HTML tags. For example: Hello, <i>I<i> am <i>very</i> glad to meet you. Should become: 'I very' So I have found something that works to nearly do this. Unfortunately, it only extracts the last entry. sed -n -e 's/.*<i>\(.*\)<\/i>.*/\1/p' Now I can append any end tag </i> with a newline characte...

C# Pattern Matching XML Element Value Libraries / Functions

I am new to C# and am kind of confused what to do after reading some related posts about this topic. I am giving an XML file from another tool. The XML file may not be valid as it may contain illegal characters and could be not well-formed. Unfortunately, the correction of illegal characters won't be done as the XML is generated from ...

can i set a font family inside <li> tag

im guessing not cause i've been trying it with examples and nthing works... but im curious why not? and how im gonna set it ? thnx! ...

CKEditor prevent the <p> at the begining

Hello! I am using CKEditor and what it does is add by default a at the begining of the content. Even if I set enterMode to be , it will only affect what the Enter key does, and keep the starting . The problem I have with that is that if a text starts with an tag, it will wrap the around that and the float:left on the image has no e...

Does PHP closing tag destructs an instantiated class (object)?

<?php class Student { public $name = "Benjamin"; } $name = new Student(); ?> <p>Hello, there. My name is <?php $name->name ?></p> The above code doesn't work as intended (printing the name within "p" tags). But the below code, of course, does work: <?php class Student { public $name = "Benjamin"; } $name = new Student(); echo '<...

required field validation in grails

Hi I am a newbie to grails and would like to know how I can set a required field validation on grails gsp or controller.for Eaxmple , if the user doest enter the user name then I should promt a message saying user name is required. Thanks sam ...

How to tag a friend in any Post generated by a facebook application ?

Dear all: When we update status in facebook, we can tag a friend in it by issuing a @ symbol and typing the friends name. Similar to this, I want to tag some friend in a post generated by my facebook application. I have searched in the facebook GRAPH API for the solution but couldn't find it. I have seen some application doing this. Ca...

Does objective c have a strip tags function?

I am looking for an objective C function (custom or built-in) that strips html tags from a string, similar to PHP's version that can be found here: http://php.net/manual/en/function.strip-tags.php Any help would be appreciated! ...

Map subdomains to wordpress tags

I want to map subdomains to my wordpress tags. So when a user visits mytag.myblog.com, he should see the page myblog.com/tag/mytag (without redirect, though). This will require some modification of the wordpress code and setting up "catch all subdomains" for the domain in apache. The latter part should be no problem. I found a plugin th...

DER encoding - How to convert implicit tag to explicit tag

I have an X.509 certificate that contains a set of data with the following IMPLICIT [0] tag: A0 81 C6 (value)... And I have this excerpt from a standards document: The IMPLICIT [0] tag is not used for the DER encoding, rather an EXPLICIT SET OF tag is used. That is, the DER encoding of the EXPLICIT SET OF tag, rather than...

What is this in html page? How it will support SEO?

<link rev="made" href="mailto:test.com"> ...

Best structure for a relational database with articles and tags

Hi there. Got a fairly straightforward system: Table of articles, table of tags, table of article_tags containing the IDs of the tag and the article it's assigned to. When I want to grab a list of all of my articles and all of their tags, I have to do some GROUP_CONCAT() querying to get a comma-separated list of the tags, which I can ...

How to use Lucene for getting tags for tagcloud?

Hello I'm a Lucene newbie and I have it working where I can create an index from a column of a database table storing tags, and search this index for a particular tag and display the results and their scores. I'm looking at this as an alternative to a MySQL fulltext index which I've heard mixed comments about. But, what I want is to g...

Organizing large collection of things - usability and UI point of view

In our application we have a repository that contains things (they are called methods and queries, but this is not particularly relevant for this question). Each thing has a title, description (though some may lack both) and some other data. Users save things to repository and load and use things from repository. I wonder what is the be...

Tooltip of an "img tag" inside an "a tag"

Hello. I'd like to know the difference between title attr of the tag "a" and alt attr of the tag img. Also, wich should I use when I have an image inside an a? Just like in this case: <a class="duplicar" href="#"><img src="Images/btnSegDuplicar.gif" alt ="Duplicar" width="76" height="20" /></a> Right now, as you can see, I'm using t...

Sorting MYSQL Tag table

Hi there, just wondering if it is possible to get the top 10 COUNT results and ordering by COUNT and alphabetically? I have the following tables, tags ------- id | title . tagged ------ tag_id | post_id And the following SQL query SELECT tag.*, COUNT(td.tag_ID) AS tagcount FROM Tagged td LEFT JOIN Tags tag ON td.tag_ID = tag.tag...

Javascript REGEX : Tags

I want to convert words into tags. So for example I have an input, if I type in in this apple, windows, stackoverflow, google, microsoft then I will get this: apple windows stackoverflow google microsoft Delimiters should be space, semicolon, or comma, just like in stackoverflow :) ...

spring framework form tag and yui text editor

hi developers. i'm using spring framework form tag. and it's simple text area . but i want to use YUI rich text editor.i can use text editor with form tag in upload page. but i want to edit that form. so how to open edit page YUI rich text editor with old news? sorry my english skill i hope you understand ...

How to read dicom tag value using openDicom.net in C#?

I'm reading dicom tags using openDicom.net like this: string tag = ""; string description = ""; string val_rep = ""; foreach (DataElement elementy in sq) { tag = elementy.Tag.ToString(); description = elementy.VR.Tag.GetDictionaryEntry().Description; val_rep = elementy.VR.ToString(); } How can...

REGEX for only data and end tag

I am looking for REGEX which will give me data along with the end tag e.g. input: ----------------- <p>ABC<p> ----------------- Output would be ----------------- ABC<p> ----------------- it will only remove the first para para tag,Not for the second para tag and all text in between would be same. I want to mention here that i am ...