I want to print this 2 strings with 4 characters per line and in the second string ABC has to be in bold; If I use my method, or your method, this is what I get:my $a: "ABCDEFGHI" my $b: "<b>ABC</b>DEFGHI"
I want the bold tags ingored in the characters counts: So:$a: ABCD EFGH I $b: <b>A BC</ b>DE FGHI
Also as I said, when I try your code it also does something with the coloured tags I used; Note: in this example I am using bold tag to make it shorter, in my scrip I am using a span class as shown. I hope it is more clear. I do not know in advance where the position it is: i need an universal solution which can print something with the same number of characters per line, basically ignoring the tags in the counts.$a: ABCD EFGH I $b: <b>ABC</b>D EFGH I
In reply to Re^2: Print N characters per line in Cgi Script with Html Tags
by Diesel
in thread Print N characters per line in Cgi Script with Html Tags
by Diesel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |