How can I get rid of all script blocks in html files?
Script to remove certain span elements from an HTML file
form in a .tpl.php file This is the code in my template.php file.  function studiga_theme_theme($existing, $type, $theme, $path) {         $items['add_property_form'] = array(         'render element' =&gt; 'form',         'template' =&gt; 'node--14',         'path' =&gt; drupal_get_path('theme', 'studiga_theme') . '/templates/node',     );      return $items; }    function custom_add_property_form($form, &amp;$form_state) {     $form['first_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('First name')),     );     $form['last_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Last name')),     );     $form['address'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Address')),     );     $form['city'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('City')),     );     $form['state'] = array(         '#type' =&gt; 'select',         '#options' =&gt; array(             'default' =&gt; 'State',             '...' =&gt; '...',         ),     );     $form['zip'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Zip')),     );     $form['email'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Email')),     );     $form['phone'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Phone')),     );     $form['submit'] = array(         '#type' =&gt; 'submit',         '#value' =&gt; 'Submit',     );      return $form; }   This is the code in node--14.tpl.php.                                          Contact Information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  &lt;div class="row"&gt;     &lt;div class="small-12 medium-12 large-8 large-offset-2 columns"&gt;         &lt;?php print render($form['submit']); ?&gt;     &lt;/div&gt; &lt;/div&gt;     But no fields are appearing - what am I doing wrong? You can't have a straight forward  in a tpl.php file can you? Proper way to exit iPhone application? I am programming an iPhone app, and I need to force it to exit due to certain user actions.  After cleaning up memory the app allocated, what's the appropriate method to call to terminate the application? I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal match the default terminal?  This is a screenshot:    I want my embedded terminal in gedit to match my default terminal. How do I install Adobe Acrobat Reader from the repository? How do I install Adobe Acrobat Reader in Ubuntu 14.04 using a Trusty apt repository?  This is NOT a duplicate of . In Synaptic &gt; Repositories &gt; Other software I enabled "Canonical Partners", but I still cannot install acroread as it is not available on my 64-bit system.  Here's the output from the console:   root@liv-inspiron:/home/liv# apt-get install acroread Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread root@liv-inspiron:/home/liv# apt-get install acroread:i386 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread How to export data files using specific number format Accessing System Databases/Tables using LINQ to SQL? Units and Nilpotents If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.   I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint? Why is it so hard to do this in Java? If you want to have any kind of module system you need to be able to load JAR files dynamically. I'm told there's a way of doing it by writing your own ClassLoader, but that's a lot of work for something that should (in my mind at least) be as easy as calling a method with a JAR file as its argument.  Any suggestions for simple code that does this? Reset post score to 0 on migration I suggest that when a post is migrated from one site to another, that the question vote score get reset to zero (or perhaps only a negative vote score is reset to zero). Often people will downvote a question when the only thing that's "wrong" with it is that it's posted on the incorrect site. After migration, those downvotes hang around as a negative score and may unfairly bias the treatment of the question. Why does Microsoft Windows' performance appear to degrade over time? Windows XP/2003 and earlier (can't attest to Windows Vista, but I suspect it's the same) all appear to become more sluggish over time as applications are installed and uninstalled.  This is not a scientifically tested observation, but more of a learned-through-experience piece of wisdom.  (I've always suspected the registry as being behind the issue.)  Is there any concrete evidence of this degradation occurring, or it just an invalid perception of mine? wireless network adapter supported on ubuntu? Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this? Why does the Euclidean algorithm work for polynomials? What is the proof? When should we use proximity rule in "either/or", and "neither/nor"? MathJax isn't currently working on the Android app, which makes it totally useless for the 'technical' sites like  or .  For example, in the Android app:    Same post in a (mobile) browser:     Please add this functionality! (Revised) Prove that $\phi$ is a group homomorphism and find the kernel. Quoting " Let $\phi : \Bbb Z \rightarrow \Bbb Z$ be given by $\phi(n) = 7n$. Prove that $\phi$ is a group homomorphism. Find the kernel, and the image of $\phi$."   My understanding:  Part 1:   Given $n,m \in \Bbb Z$, let's check that $\phi(n+m) =\phi(n)+\phi(m)$  $$\phi(n+m) = 7(n+m) = 7n + 7m = \phi(n)+\phi(m)$$  Therefore as the group operation in $\phi$ is preserved, $\phi$ is a group homomorphism.  Part 2 (revised):   $\phi$ is one-to-one as:  $\space \space \phi (n) = \phi(m) \Rightarrow 7n =7m \Rightarrow n=m  $. We also know that $\phi(e)=e$ by the property of homomorphism. Therefore, no other object than $0$ in the domain can map to $0$ in the codomain. It follows that: $$\ker(\phi)=\{ x \in \Bbb Z : \phi(x)=e\}=\{e\}$$   Part 3 (revised):  I claim that the only possible image-elements of $\phi$ are the multiples of $7$ in $\mathbb Z$ denoted $7\mathbb Z$.   To prove this I have to show that Im$(\phi) \subset 7 \Bbb Z$ and that $ 7 \Bbb Z \subset $ Im$(\phi)$.  Proving Im$(\phi) \subset 7 \Bbb Z$ :      $\forall y \in $ Im$(\phi)$ such that $  y =\phi(x)$ where $x \in 7 \Bbb Z$. It follows that $y \in 7 \Bbb Z$, therefore Im$(\phi) \subset 7 \Bbb Z$   Proving $ 7 \Bbb Z \subset $ Im$(\phi)$:   $\forall y \in  7\Bbb Z$ such that $  y =7x$ where $x \in \phi(x)$. It follows that $y \in \phi(x)$, therefore $ 7 \Bbb Z \subset $ Im$(\phi)$.   Any input to my understanding is much appreciated. Get a generic method without using GetMethods I want to get the method System.Linq.Queryable.OrderyBy&lt;T, TKey&gt;(the IQueryable&lt;T&gt; source, Expression&lt;Func&lt;T,TKey&gt;&gt; keySelector) method, but I keep coming up with nulls.  var type = typeof(T); var propertyInfo = type.GetProperty(group.PropertyName); var propertyType = propertyInfo.PropertyType;  var sorterType = typeof(Func&lt;,&gt;).MakeGenericType(type, propertyType); var expressionType = typeof(Expression&lt;&gt;).MakeGenericType(sorterType);  var queryType = typeof(IQueryable&lt;T&gt;);  var orderBy = typeof(System.Linq.Queryable).GetMethod("OrderBy", new[] { queryType, expressionType }); /// is always null.   Does anyone have any insight? I would prefer to not loop through the GetMethods result. Lufthansa airline offers the &quot;Economy Flex&quot; fare. The listed advantages of this fare are:  Rebooking possible plus fare difference Refundable except 70 EUR plus fare difference  What does the &quot;plus fare difference&quot; mean? Imagine I buy a ticket for 200 €. Later I decide to cancel. They keep 70 Euro, so I get 130€ back. What's with the fare difference? Fare difference to what? As a comparison, the &quot;Economy classic&quot; states:  Rebooking: 70 EUR plus fare difference Refund not possible What's the deal with the phrase "could care less"?  Whilst growing up, I've always known people (parents etc) to use the phrase "couldn't care less", but I've also come across people who use the phrase "could care less" to mean the same thing (that is, "I do not care at all about that").  To me "couldn't care less" seems a lot more logical. If I couldn't care less about something, that implies I do not care about it at all. In contrast to this, to my mind the phrase "could care less" seems to indicate "I do care about this to some degree at least", but that's definitely not the meaning intended.  What's going on here? Is my (logical) analysis correct or in error? Can't replace block with a Command Block I am making a Sell Shop, but I need to replace some things using /setblock.  For one of the replacements, I am using the command:  /setblock 579 62 1053 minecraft:command_block 0 replace {Command:"testfor @p {Inventory:[{id:"minecraft:log",Count:32b}]}",TrackOutput:0}  But it won't work! When I try it using a Command Block, I get this message:     [19:14:38]   Data tag parsing failed: Unexpected token 'm' at: minecraft:log",Count:32b}]}",TrackOutput:0   Is there any way I can fix this?